forked from microsoft/node-pty
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Prepare prebuild environment.yml
- Loading branch information
1 parent
d29227d
commit faa4dda
Showing
1 changed file
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
name: Prepare prebuild environment ${{ github.ref_name }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: ${{ steps.package-version.outputs.current-version }} | ||
releaseTag: ${{ steps.package-version.outputs.current-version }} | ||
steps: | ||
- name: Delete pr-* branches | ||
uses: homebridge/action-delete-branch@v4 | ||
|
@@ -81,6 +81,7 @@ jobs: | |
uses: martinbeentjes/[email protected] | ||
|
||
prebuild: | ||
needs: Prepare_prebuild_environment | ||
name: ${{ matrix.name }} - Prebuild NPM and GitHub Release artifacts | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -367,7 +368,7 @@ jobs: | |
publish: | ||
name: Publish GitHub and NPM Release | ||
needs: prebuild | ||
needs: [prebuild, Prepare_prebuild_environment] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -424,18 +425,14 @@ jobs: | |
# if [ "$fileCount" -ne ${ReleasePrebuildifyCount} ]; then echo "::error::Release Prebuildify count ${fileCount}, expected ${ReleasePrebuildifyCount}"; exit 1; else echo "::notice::Release Prebuildify count ${fileCount}, expected ${ReleasePrebuildifyCount}"; fi | ||
|
||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.package-version.outputs.current-version}} | ||
release_name: Release v${{ steps.package-version.outputs.current-version}} | ||
tag_name: v${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
release_name: Release v${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
body: | | ||
Changes in this Release | ||
- First Change | ||
|
@@ -444,22 +441,22 @@ jobs: | |
prerelease: true | ||
|
||
- uses: AButler/[email protected] | ||
name: Upload Prebuild Artifacts to ${{ steps.package-version.outputs.current-version}} | ||
name: Upload Prebuild Artifacts to ${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
with: | ||
files: "prebuilds/*/node-pty*tar.gz" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: v${{ steps.package-version.outputs.current-version}} | ||
release-tag: v${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
|
||
- name: NPM Pack Release | ||
run: | | ||
npm pack | ||
- uses: AButler/[email protected] | ||
name: Upload NPM Release to ${{ steps.package-version.outputs.current-version}} | ||
name: Upload NPM Release to ${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
with: | ||
files: "*node-pty-prebuilt-multiarch*.tgz" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: v${{ steps.package-version.outputs.current-version}} | ||
release-tag: v${{ needs.Prepare_prebuild_environment.outputs.releaseTag}} | ||
|
||
- name: "Check file existence" | ||
id: check_files | ||
|
@@ -487,4 +484,5 @@ jobs: | |
|
||
- name: "Output Results" | ||
run: | | ||
echo "::notice:: Release Version: ${{ steps.package-version.outputs.current-version }}" | ||
echo "::notice:: GitHub run_id: ${{ github.run_id }}" | ||
echo "::notice:: Release Version: ${{ needs.Prepare_prebuild_environment.outputs.releaseTag }}" |