-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: jobs compatibility with release branch (#8369)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ecf2d8e
commit 57802f9
Showing
5 changed files
with
37 additions
and
22 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 |
---|---|---|
|
@@ -6,7 +6,8 @@ on: | |
branches: | ||
# $default-branch | ||
- master | ||
- release-pismo | ||
- 'release-*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
@@ -54,13 +55,20 @@ jobs: | |
run: npm whoami | ||
- name: publish to NPM tag | ||
run: | | ||
if [ "${{ github.ref_name }}" = "release-pismo" ]; then | ||
# A pismo dev release. | ||
TAG=pismo-dev | ||
else | ||
# Just a dev release. | ||
TAG=dev | ||
fi | ||
case $GITHUB_REF_NAME in | ||
release-*) | ||
# A pre-release. | ||
TAG=${GITHUB_REF_NAME#release-}-dev | ||
;; | ||
master) | ||
# A trunk dev release. | ||
TAG=dev | ||
;; | ||
*) | ||
# Some other dev release. | ||
TAG=other-dev | ||
;; | ||
esac | ||
# without concurrency until https://github.com/Agoric/agoric-sdk/issues/8091 | ||
yarn lerna publish --concurrency 1 --conventional-prerelease --canary --exact \ | ||
--dist-tag=$TAG --preid=$TAG-$(git rev-parse --short=7 HEAD) \ | ||
|
@@ -102,7 +110,7 @@ jobs: | |
- uses: nwtgck/[email protected] | ||
with: | ||
# Production deployment if a push or merged PR. | ||
production-deploy: ${{github.event_name == 'push'}} | ||
production-deploy: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
publish-dir: coverage/html | ||
# SECURITY: we don't want to hand out the Github token to this action. | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
branches: | ||
# $default-branch | ||
- master | ||
- release-pismo | ||
- 'release-*' | ||
|
||
jobs: | ||
xs-build: | ||
|
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
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