Skip to content

Commit d7b2abd

Browse files
committed
ci: 🎡 add release workflow
1 parent 958b375 commit d7b2abd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)