Skip to content

Commit 42132b1

Browse files
committed
add release and publish workflow
1 parent 11cbf45 commit 42132b1

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release & Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- run: npm ci
24+
25+
- name: Create GitHub Release
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
generate_release_notes: true
29+
30+
- name: Publish to npm
31+
run: npm publish --access public --provenance

0 commit comments

Comments
 (0)