Skip to content

Commit d6e9114

Browse files
authored
feat: add release workflow (#236)
1 parent 34673af commit d6e9114

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
- workflow_dispatch
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: PNPM Install
14+
uses: pnpm/action-setup@v4
15+
with:
16+
version: 9.14.2
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 23.5.0
22+
cache: 'pnpm'
23+
registry-url: https://registry.npmjs.org/
24+
25+
- run: corepack enable
26+
27+
- name: Install NPM Dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build
31+
run: pnpm run build
32+
33+
- name: Publish to npm
34+
run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)