Skip to content

Commit 75d57ab

Browse files
committed
Move permissions to the workflow level in deploy.yaml
1 parent c24544b commit 75d57ab

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/deploy.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
contents: read
10+
id-token: write
11+
812
jobs:
913
deploy:
1014
name: Release new version to NPM
1115
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
id-token: write
1516
steps:
1617
- uses: actions/checkout@v4
1718

@@ -23,9 +24,7 @@ jobs:
2324
- run: npm ci
2425

2526
- run: npm publish --provenance --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28-
27+
2928
- name: Generate Changelog
3029
run: |
3130
sed -n "/$GITHUB_REF_NAME/,/^$/{/^$/q;p;}" CHANGELOG.md > ${{ github.workspace }}-CHANGELOG.txt

0 commit comments

Comments
 (0)