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
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

permissions:
contents: write
id-token: write

jobs:
check-version:
Expand Down Expand Up @@ -171,7 +172,7 @@ jobs:
- name: Setup Node.js (for npm publish)
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down Expand Up @@ -200,15 +201,13 @@ jobs:

- name: Publish to npm
run: |
npm publish --access public --tag ${{ steps.npm_tag.outputs.tag }} 2>&1 | tee npm-publish.log || {
npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }} 2>&1 | tee npm-publish.log || {
Comment thread
pitzcarraldo marked this conversation as resolved.
if grep -q "You cannot publish over the previously published versions" npm-publish.log; then
echo "Version already published, skipping..."
else
exit 1
fi
}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Calculate SHA256
id: sha256
Expand Down
Loading