-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test the release-build process; install the correct Node version
- Add a GitHub action to test the release-build process and make sure we don't introduce any reproducibility issues in a new change. - Show what's different in console output if the release build fails for reproducibility reasons (to make troubleshooting easier in GHA). - Make install-deps.sh install the correct Node version, if the one that's installed is too old (as it is on the GitHub runners).
- Loading branch information
1 parent
d8faefb
commit 5ab94fa
Showing
4 changed files
with
38 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: test-release-build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Dependencies | ||
run: sh ./install-deps.sh | ||
- name: Make a Temporary Version Number (if needed) | ||
run: | | ||
if [ -z "$(git tag --points-at=HEAD)" ]; then | ||
node -e "x=`cat assets/manifest.json`; x.version='9999.99.9999'; console.log(JSON.stringify(x))" >assets/manifest.json.new | ||
mv assets/manifest.json.new assets/manifest.json | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git commit -m 'Make a temporary version number' assets/manifest.json | ||
fi | ||
- name: Try Building Release Artifacts | ||
run: make rel |
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
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