diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index de2bf15f9..9afc6a3eb 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -36,7 +36,10 @@ jobs: run: "yarn install --frozen-lockfile" - name: 🚀 Publish to npm - run: npm publish --provenance --access public --tag "$TAG" + id: npm-publish + run: | + npm publish --provenance --access public --tag "$TAG" + release=$(jq -r '"\(.name)@\(.version)"' package.json) + echo "id=$release" >> $GITHUB_OUTPUT env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} TAG: ${{ contains(steps.npm-publish.outputs.id, '-rc.') && 'next' || 'latest' }}