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:
30
30
publishnext :
31
31
name : Publish experimental Packages
32
32
# 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
34
35
if : |
35
36
github.event.release.target_commitish != 'main' &&
36
37
startsWith(github.ref, 'refs/tags/v') &&
37
38
github.event.release.prerelease == true
38
39
runs-on : ubuntu-latest
39
40
env :
40
41
RELEASE_CONTEXT : ${{ toJson(github.event.release) }}
42
+ TEST_CONTEXT : ${{ toJson(github.event) }}
41
43
42
44
steps :
43
45
- name : Publish experimental Packages
50
52
echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }}
51
53
echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }}
52
54
echo "RELEASE_CONTEXT: $RELEASE_CONTEXT"
55
+ echo "TEST_CONTEXT: $TEST_CONTEXT"
53
56
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
54
57
echo "GITHUB_SHA_SHORT $GITHUB_SHA_SHORT"
55
58
SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }})
You can’t perform that action at this time.
0 commit comments