Skip to content

Commit b9399a1

Browse files
committed
Add GitHub workflow for trusted publishing
1 parent 8c77af5 commit b9399a1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish_npm.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to NPM
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: "npm"
20+
registry-url: "https://registry.npmjs.org"
21+
22+
- name: Update npm
23+
run: npm install -g npm@latest
24+
25+
- name: Install
26+
run: npm ci
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Publish
32+
run: npm publish

0 commit comments

Comments
 (0)