Skip to content

Commit 9504d6e

Browse files
committed
chore: update GitHub Actions workflow — add npm environment for publishing
1 parent 44420b5 commit 9504d6e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
environment: npm
89
permissions:
910
contents: read
1011
id-token: write
@@ -16,6 +17,4 @@ jobs:
1617
registry-url: "https://registry.npmjs.org"
1718
- run: npm ci
1819
- run: npm test
19-
- run: npm publish --provenance --access public
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)