Skip to content

Commit 36c7eee

Browse files
authored
fix(ci): use NPM access token instead
Removes the trusted publisher authentication to publish package, since it didn't work. Updates the workflow to use NPM_TOKEN.
1 parent 3e8a24c commit 36c7eee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: '20'
24+
registry-url: 'https://registry.npmjs.org'
2425

2526
- name: Install Dependencies
2627
run: npm ci
@@ -29,4 +30,6 @@ jobs:
2930
run: npm run build
3031

3132
- name: Publish to NPM
32-
run: npm publish --provenance --access public
33+
run: npm publish --access public
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)