Skip to content

Commit f5754ca

Browse files
committed
setup for OCID
1 parent e7fbb53 commit f5754ca

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- v*
66
permissions:
77
contents: write
8+
id-token: write
89
jobs:
910
build-and-deploy:
1011
runs-on: ubuntu-latest
@@ -16,19 +17,16 @@ jobs:
1617
- name: Use Node.js 😂
1718
uses: actions/setup-node@v4
1819
with:
19-
node-version: 18
20+
node-version: 24
21+
registry-url: 'https://registry.npmjs.org'
2022

2123
- name: Install and Build 🔧
2224
run: |
2325
npm ci
2426
npm run build-ci
27+
npm publish
2528
2629
- name: Deploy 🚀
2730
uses: JamesIves/github-pages-deploy-action@v4
2831
with:
2932
folder: .
30-
31-
- name: Publish to NPM 📖
32-
uses: JS-DevTools/npm-publish@v2
33-
with:
34-
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)