Skip to content

Commit a8fea39

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent c1c0c6b commit a8fea39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎.github/workflows/tag-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
# Only publish if not on the main branch, the release tag starts with a "v"
3434
# and is flagged as a prerelease
3535
if: |
36+
github.event.release.target_commitish != 'main' &&
3637
startsWith(github.ref, 'refs/tags/v') &&
3738
github.event.release.prerelease == true
3839
runs-on: ubuntu-latest
@@ -72,3 +73,12 @@ jobs:
7273
VALID_SEMVER_VERSION=$(node scripts/version-helper.js $SEMVER_VERSION)
7374
echo "Semver stable version unclean $SEMVER_VERSION"
7475
echo "Semver stable version valid $VALID_SEMVER_VERSION"
76+
- uses: actions/github-script@v6
77+
with:
78+
script: |
79+
octokit.rest.repos.updateRelease({
80+
owner: context.repository.owner,
81+
repo: context.repository.name,
82+
release_id: context.release.id
83+
body: '👋 woo hoo!'
84+
})

0 commit comments

Comments
 (0)