Skip to content

Commit afd3c16

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent 0234908 commit afd3c16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎.github/workflows/tag-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
@@ -50,6 +52,7 @@ jobs:
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 }})

0 commit comments

Comments
 (0)