Skip to content

Commit 4f7321a

Browse files
committed
adopt trusted publishing
1 parent 656ac8e commit 4f7321a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ on:
55
release:
66
types: [published]
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
packages: write
1415
steps:
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-node@v4
@@ -20,6 +21,4 @@ jobs:
2021
cache: 'yarn'
2122
- run: yarn --frozen-lockfile
2223
- run: yarn test
23-
- run: npm publish
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- run: npm publish --access publish

0 commit comments

Comments
 (0)