Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/nodejs-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ jobs:
git tag "v$RELEASE_VERSION"
git push origin "v$RELEASE_VERSION"

- name: Pack npm artifact
id: pack
run: |
TARBALL=$(npm pack)
echo "tarball=$TARBALL" >> "$GITHUB_OUTPUT"

Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: Extract release notes from changelog
env:
RELEASE_VERSION: ${{ steps.version.outputs.value }}
Expand All @@ -126,9 +132,6 @@ jobs:
exit 1
fi

- name: Pack npm artifact
run: npm pack

- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -142,7 +145,7 @@ jobs:
--title "v$RELEASE_VERSION" \
--notes-file release-notes.md \
$PRERELEASE_FLAG \
./*.tgz
"${{ steps.pack.outputs.tarball }}"

- name: Publish to npm
env:
Expand All @@ -155,7 +158,7 @@ jobs:
exit 1
fi
if [[ "$RELEASE_VERSION" == *"-"* ]]; then
npm publish --access public --provenance --tag next
npm publish "${{ steps.pack.outputs.tarball }}" --access public --provenance --tag next
else
npm publish --access public --provenance
npm publish "${{ steps.pack.outputs.tarball }}" --access public --provenance
fi