Skip to content

Commit

Permalink
refactor: add write permission for publish-npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arashagp committed Dec 29, 2024
1 parent 1d48a87 commit f79ac93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:

permissions:
contents: read
id-token: write

steps:
- name: ⤵️ Checkout repository
Expand Down Expand Up @@ -54,8 +55,11 @@ jobs:
run: yarn build
env:
NODE_ENV: production
WIREIT_LOGGER: metrics

- name: 🚀 Publish
run: yarn run publish --yes
run: yarn run publish -- --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
WIREIT_LOGGER: metrics

0 comments on commit f79ac93

Please sign in to comment.