diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ce7aca..b1bd4d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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