Skip to content

Commit 80502a1

Browse files
authored
Merge pull request #51 from lightninglabs/fix-npm-publish
ci: fix npm workflow failing to publish
2 parents f74d7e1 + b19f1f4 commit 80502a1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/npm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [created]
5+
6+
permissions:
7+
id-token: write # Required for NPM Trusted Publishing
8+
contents: read
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
@@ -14,5 +19,3 @@ jobs:
1419
registry-url: 'https://registry.npmjs.org'
1520
- run: yarn install --frozen-lockfile
1621
- run: npm publish --access public
17-
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)