File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,16 @@ jobs:
3030 publishnext :
3131 name : Publish experimental Packages
3232 # needs: [test, cypress]
33- # if: startsWith(github.event.ref, 'refs/tags/v')
33+ # Only publish if not on the main branch, the release tag starts with a "v"
34+ # and is flagged as a prerelease
3435 if : |
3536 github.event.release.target_commitish != 'main' &&
3637 startsWith(github.ref, 'refs/tags/v') &&
3738 github.event.release.prerelease == true
3839 runs-on : ubuntu-latest
3940 env :
4041 RELEASE_CONTEXT : ${{ toJson(github.event.release) }}
42+ TEST_CONTEXT : ${{ toJson(github.event) }}
4143
4244 steps :
4345 - name : Publish experimental Packages
5052 echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }}
5153 echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }}
5254 echo "RELEASE_CONTEXT: $RELEASE_CONTEXT"
55+ echo "TEST_CONTEXT: $TEST_CONTEXT"
5356 GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
5457 echo "GITHUB_SHA_SHORT $GITHUB_SHA_SHORT"
5558 SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }})
You can’t perform that action at this time.
0 commit comments