Skip to content

Commit f5b7f42

Browse files
authored
ci: add registry-url and provenance to npm publish (#290)
1 parent 12359b3 commit f5b7f42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
permissions:
77
contents: read
8+
id-token: write
89

910
jobs:
1011
publish:
@@ -24,9 +25,11 @@ jobs:
2425
with:
2526
node-version-file: package.json
2627
cache: "pnpm"
28+
registry-url: "https://registry.npmjs.org"
2729
- name: Install npm dependencies
2830
run: pnpm install --frozen-lockfile
2931
- run: pnpm build
30-
- run: pnpm publish --recursive
32+
- run: pnpm publish --recursive --access public
3133
env:
3234
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
35+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)