Skip to content

Commit 8bc66ea

Browse files
committed
ci: 🎡 add release workflow
1 parent 8e80884 commit 8bc66ea

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [master, next]
6+
7+
jobs:
8+
release:
9+
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/master' || github.event.ref == 'refs/heads/next') }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [22.x]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: yarn
21+
- run: yarn install --frozen-lockfile
22+
- run: yarn lint
23+
- run: yarn test
24+
- run: yarn lint:types
25+
- run: yarn build
26+
- name: Semantic Release
27+
uses: cycjimmy/semantic-release-action@v4
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)