Skip to content

Commit eb03d9a

Browse files
committed
Update publish.yaml for release job permissions
Added id-token permission for the release job and removed NODE_AUTH_TOKEN from the publish step.
1 parent 32f2045 commit eb03d9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
release:
2727
permissions:
2828
contents: write
29+
id-token: write
2930

3031
# Use the semver as the job name
3132
name: "Release ${{ github.event.inputs.semver }}"
@@ -47,8 +48,6 @@ jobs:
4748
4849
- name: Publish
4950
run: npm publish
50-
env:
51-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5251

5352
- name: Set version as env var
5453
run: |

0 commit comments

Comments
 (0)