Skip to content

Commit 662895b

Browse files
committed
build: add publish actions
1 parent a1f934b commit 662895b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish Package to npmjs
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '24'
20+
registry-url: 'https://registry.npmjs.org'
21+
- run: npm install
22+
- run: npm run build
23+
- run: npm test
24+
- run: npm publish --provenance
25+
if: success() && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)