Skip to content

Commit 1e0991a

Browse files
committed
Fix NPM publishing
1 parent 15bade5 commit 1e0991a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
types: [created]
55

66
permissions:
7-
contents: write # we need to read secrets
7+
contents: read # we need to read secrets
8+
id-token: write
89

910
jobs:
1011
build:
@@ -17,6 +18,6 @@ jobs:
1718
with:
1819
registry-url: 'https://registry.npmjs.org'
1920
- name: Publish package on NPM 📦
20-
run: npm publish
21+
run: npm publish --access public
2122
env:
2223
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@staffbase:registry=https://registry.npmjs.org/
1+
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2+
registry=https://registry.npmjs.org/
23
always-auth=true
3-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 commit comments

Comments
 (0)