Skip to content

Commit ac0e011

Browse files
authored
fix: switch to npm OIDC trusted publishing (#38)
NPM_TOKEN will be invalidated any day now
2 parents 9ab3545 + 8909149 commit ac0e011

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,25 @@ jobs:
2020
release-type: node
2121
package-name: indexing-service-client
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424
if: ${{ steps.release.outputs.release_created }}
2525
- name: Setup pnpm
2626
uses: pnpm/action-setup@v4
2727
if: ${{ steps.release.outputs.release_created }}
2828
- name: Setup Node
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v6
3030
with:
31-
node-version: 20
31+
node-version: 24
3232
registry-url: https://registry.npmjs.org/
3333
cache: 'pnpm'
3434
if: ${{ steps.release.outputs.release_created }}
35-
- name: Update NPM
36-
run: npm install -g npm@11
37-
if: ${{ steps.release.outputs.release_created }}
3835
- name: Install Dependencies
3936
run: pnpm install
4037
if: ${{ steps.release.outputs.release_created }}
4138
- name: Build
4239
run: pnpm build
4340
if: ${{ steps.release.outputs.release_created }}
4441
- name: Publish to npm
45-
run: npm publish --access=public
46-
env:
47-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
42+
run: pnpm publish --access=public
4843
if: ${{ steps.release.outputs.release_created }}
4944

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ Feel free to join in. All welcome. [Open an issue](https://github.com/storacha/j
2424
## License
2525

2626
Dual-licensed under [MIT / Apache 2.0](https://github.com/storacha/js-indexing-service-client/blob/main/LICENSE.md)
27+

0 commit comments

Comments
 (0)