Skip to content

Commit a7816ba

Browse files
committed
fix: switch to NPM Trusted Publishing
1 parent 67f89ef commit a7816ba

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ on:
44
push:
55
tags:
66
- 'v*' # only run if new tag is pushed
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
712
jobs:
813
test:
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1217
- name: Install Node
13-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1419
with:
15-
node-version: 20
20+
node-version: 24
21+
registry-url: 'https://registry.npmjs.org'
1622
- name: Install dependencies and build
1723
run: yarn
18-
- uses: JS-DevTools/npm-publish@v3
19-
with:
20-
token: ${{ secrets.NPM_TOKEN }}
21-
strategy: all # will publish any version that does not yet exist in the registry
24+
- name: Publish to NPM
25+
run: yarn publish --non-interactive

0 commit comments

Comments
 (0)