Skip to content

Commit f79ac93

Browse files
committed
refactor: add write permission for publish-npm workflow
1 parent 1d48a87 commit f79ac93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish-npm.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121

2222
permissions:
2323
contents: read
24+
id-token: write
2425

2526
steps:
2627
- name: ⤵️ Checkout repository
@@ -54,8 +55,11 @@ jobs:
5455
run: yarn build
5556
env:
5657
NODE_ENV: production
58+
WIREIT_LOGGER: metrics
5759

5860
- name: 🚀 Publish
59-
run: yarn run publish --yes
61+
run: yarn run publish -- --yes
6062
env:
6163
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
64+
NPM_CONFIG_PROVENANCE: true
65+
WIREIT_LOGGER: metrics

0 commit comments

Comments
 (0)