Skip to content

Commit 137acf5

Browse files
committed
use OICD for publishing
1 parent 13f9c02 commit 137acf5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
tags:
55
- v*
6+
permissions:
7+
contents: write
8+
id-token: write
69
jobs:
710
test:
811
runs-on: ubuntu-latest
@@ -15,14 +18,11 @@ jobs:
1518
- name: Use Node.js 😂
1619
uses: actions/setup-node@v4
1720
with:
18-
node-version: 18
21+
node-version: 24
22+
registry-url: 'https://registry.npmjs.org'
1923

2024
- name: Test 🧪
2125
run: |
2226
npm ci
2327
npm run check-ci
24-
25-
- name: Publish to NPM
26-
uses: JS-DevTools/npm-publish@v3
27-
with:
28-
token: ${{ secrets.NPM_TOKEN }}
28+
npm publish

0 commit comments

Comments
 (0)