Skip to content

Commit 534b37d

Browse files
committed
feat: release on version tag
1 parent 95d2025 commit 534b37d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
15+
registry-url: "https://registry.npmjs.org"
16+
cache: yarn
17+
- run: yarn install --frozen-lockfile
18+
- run: yarn lint
19+
- run: yarn build
20+
- run: npm publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)