Skip to content

Commit 2c330d3

Browse files
committed
fix: ci npm publish
1 parent f46daaf commit 2c330d3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/assets/token.png

80 KB
Loading

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1514
steps:
1615
- name: Checkout
1716
uses: actions/checkout@v4

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ yarn start:esm # For running the code builded in esm
3131

3232
## Publish to npm
3333

34-
Set `NPM_TOKEN` in your Github actions secret, and that's it :)
34+
Thanks to OIDC, you no longer need the `NPM_TOKEN`.
35+
36+
Go to your npm package's access page https://www.npmjs.com/package/my-repo-name/access, , set your details and trust publisher, and you're all set!
3537

3638
![Alt Text](https://raw.githubusercontent.com/maxgfr/typescript-swc-starter/main/.github/assets/token.png)
3739

0 commit comments

Comments
 (0)