Skip to content

Commit dafb1fe

Browse files
ci: migrate to npm trusted publishing
1 parent 084b3d5 commit dafb1fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
permissions:
4+
id-token: write
45
contents: write
56

67
on:
@@ -33,6 +34,6 @@ jobs:
3334
run: pnpm run dev:prepare
3435

3536
- name: Publish to npm
36-
run: npm publish --access public
37+
run: npm install -g npm@latest && npm publish --access public
3738
env:
3839
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)