Skip to content

Commit 87215c4

Browse files
committed
Set up workflow permissions for trusted publishing
1 parent a5f999a commit 87215c4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types:
66
- published
7+
permissions:
8+
id-token: write
9+
contents: read
710
jobs:
811
npm_release:
912
runs-on: ubuntu-latest
@@ -25,8 +28,6 @@ jobs:
2528
run: npm install && npm version "${{ github.ref_name }}" --allow-same-version
2629
- name: Publish packages to npmjs.org
2730
working-directory: ./npm/@fastly
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3031
run: |
3132
for dir in *; do
3233
(

0 commit comments

Comments
 (0)