File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 32
32
# needs: [test, cypress]
33
33
# if: startsWith(github.event.ref, 'refs/tags/v')
34
34
if : |
35
- startsWith(github.ref, 'refs/tags/v') && github.event.release.prerelease == true
35
+ github.event.release.target_commitish != 'main' &&
36
+ startsWith(github.ref, 'refs/tags/v') &&
37
+ github.event.release.prerelease == true
36
38
runs-on : ubuntu-latest
37
39
env :
38
40
RELEASE_CONTEXT : ${{ toJson(github.event.release) }}
50
52
echo "RELEASE_CONTEXT: $RELEASE_CONTEXT"
51
53
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
52
54
echo "GITHUB_SHA_SHORT $GITHUB_SHA_SHORT"
53
- npx find-versions-cli ${{ github.event.release.tag_name }}
55
+ SEMVER_VERSION=npx find-versions-cli ${{ github.event.release.tag_name }}
56
+ echo "Semver experimental version $SEMVER_VERSION-$GITHUB_SHA_SHORT"
54
57
55
58
publishstable :
56
59
name : Publish stable packages
60
63
- name : Publish stable packages
61
64
run : |
62
65
echo "We are running on: " ${{github.event.release.target_commitish}}
63
- npx find-versions-cli ${{ github.event.release.tag_name }}
66
+ SEMVER_VERSION=npx find-versions-cli ${{ github.event.release.tag_name }}
67
+ echo "Semver stable version $SEMVER_VERSION"
You can’t perform that action at this time.
0 commit comments