@@ -300,6 +300,7 @@ jobs:
300
300
release :
301
301
permissions :
302
302
contents : write
303
+ id-token : write
303
304
runs-on : ubuntu-24.04
304
305
needs :
305
306
- build-native
@@ -314,11 +315,9 @@ jobs:
314
315
- name : Create npm workspace tarball
315
316
run : tar -vcaf npm-workspace.tar.xz --directory npm --exclude=from-local-build.js .
316
317
- uses : actions/setup-node@v4
317
- if : startsWith(github.ref, 'refs/tags/v')
318
318
with :
319
- node-version : " 24 "
319
+ node-version : ' 24 '
320
320
- name : Create release notes
321
- if : startsWith(github.ref, 'refs/tags/v')
322
321
run : npm run package-release-notes
323
322
- name : Create GitHub release for tag
324
323
if : startsWith(github.ref, 'refs/tags/v')
@@ -329,3 +328,9 @@ jobs:
329
328
prerelease : ${{ contains(github.ref, '-rc') }}
330
329
makeLatest : ${{ !contains(github.ref, '-rc') }}
331
330
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