Skip to content

Commit ee5b3a4

Browse files
committed
ci: fix npm auto publish
1 parent cccd318 commit ee5b3a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ jobs:
9090
if: startsWith(github.ref, 'refs/tags/')
9191
runs-on: ubuntu-latest
9292
needs: build
93+
permissions:
94+
contents: read
95+
id-token: write
9396
steps:
9497
- name: Merge Artifacts
9598
uses: actions/upload-artifact/merge@v4
@@ -129,6 +132,7 @@ jobs:
129132
uses: actions/setup-node@v4
130133
with:
131134
node-version-file: ".nvmrc"
135+
registry-url: 'https://registry.npmjs.org'
132136

133137
- name: Setup Pnpm
134138
uses: pnpm/action-setup@v4
@@ -137,6 +141,6 @@ jobs:
137141
run: pnpm install
138142

139143
- name: Publish to npm
140-
run: npm publish
144+
run: npm publish --provenance --access public
141145
env:
142146
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)