Skip to content

Commit 0322b51

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent a655523 commit 0322b51

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎.github/workflows/tag-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
# needs: [test, cypress]
3333
# if: startsWith(github.event.ref, 'refs/tags/v')
3434
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
3638
runs-on: ubuntu-latest
3739
env:
3840
RELEASE_CONTEXT: ${{ toJson(github.event.release) }}
@@ -50,7 +52,8 @@ jobs:
5052
echo "RELEASE_CONTEXT: $RELEASE_CONTEXT"
5153
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
5254
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"
5457
5558
publishstable:
5659
name: Publish stable packages
@@ -60,4 +63,5 @@ jobs:
6063
- name: Publish stable packages
6164
run: |
6265
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"

0 commit comments

Comments
 (0)