Skip to content

Commit b689bca

Browse files
committed
chore: ci release
1 parent a989dba commit b689bca

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [18]
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
- uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'pnpm'
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Create Release Pull Request
32+
uses: changesets/action@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
# Note: pnpm install after versioning is necessary to refresh lockfile
37+
version: pnpm run version
38+
commit: "[ci] release"
39+
title: "[ci] release"
40+

0 commit comments

Comments
 (0)