Skip to content

Commit bd1d3b8

Browse files
committed
Add npm publish GHA workflow [skip ci]
1 parent 185d84a commit bd1d3b8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '22.x'
21+
registry-url: 'https://registry.npmjs.org'
22+
cache: 'npm'
23+
- run: npm ci
24+
- run: npm publish --provenance --access public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)