Skip to content

Commit 95f04e4

Browse files
authored
Merge pull request #187 from JaniAnttonen/development
Use trusted publisher in npm
2 parents a9d8399 + 4ddefe7 commit 95f04e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Publish to NPM
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
id-token: write
7+
contents: read
58
jobs:
69
publish:
710
runs-on: ubuntu-latest
@@ -19,5 +22,3 @@ jobs:
1922
run: npm version "${GITHUB_REF#refs/tags/}" --no-git-tag-version --allow-same-version
2023
- name: Publish
2124
run: npm publish --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)