@@ -300,6 +300,7 @@ jobs:
300300 release :
301301 permissions :
302302 contents : write
303+ id-token : write
303304 runs-on : ubuntu-24.04
304305 needs :
305306 - build-native
@@ -314,11 +315,9 @@ jobs:
314315 - name : Create npm workspace tarball
315316 run : tar -vcaf npm-workspace.tar.xz --directory npm --exclude=from-local-build.js .
316317 - uses : actions/setup-node@v4
317- if : startsWith(github.ref, 'refs/tags/v')
318318 with :
319- node-version : " 24 "
319+ node-version : ' 24 '
320320 - name : Create release notes
321- if : startsWith(github.ref, 'refs/tags/v')
322321 run : npm run package-release-notes
323322 - name : Create GitHub release for tag
324323 if : startsWith(github.ref, 'refs/tags/v')
@@ -329,3 +328,9 @@ jobs:
329328 prerelease : ${{ contains(github.ref, '-rc') }}
330329 makeLatest : ${{ !contains(github.ref, '-rc') }}
331330 bodyFile : release-notes.md
331+ - name : Publish platform-specific npm packages
332+ if : startsWith(github.ref, 'refs/tags/v')
333+ run : cd npm && npm publish --workspaces --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }} --dry-run
334+ - name : Publish sharp npm package
335+ if : startsWith(github.ref, 'refs/tags/v')
336+ run : npm publish --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }} --dry-run
0 commit comments