Skip to content

Commit

Permalink
Update the NPM edge release when doing a full GitHub release.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Oct 23, 2024
1 parent fa49646 commit 19524b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:
if [ "${{ github.event.release.prerelease }}" == "false" ]; then
npm publish --access public --dry-run
npm publish --access public
VERSION=$(node -p "require('./package.json').version")
PACKAGE_NAME=$(node -p "require('./package.json').name")
npm dist-tag add @$PACKAGE_NAME@$VERSION edge
echo "::notice title=Updated edge tag::The edge tag now points to $VERSION"
echo "::notice title=Published ${{ github.ref_name }} to @${{ github.repository }}::This is a stable release published to the default 'latest' npm tag"
else
npm publish --access public --tag ${{ env.PRERELEASE_TAG }} --dry-run
Expand Down

0 comments on commit 19524b7

Please sign in to comment.