-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 937 Bytes
/
Copy pathrelease.yml
File metadata and controls
41 lines (33 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 设置 Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
- name: 安装 pnpm
uses: pnpm/action-setup@v3
with:
version: 10.12.1
- name: 安装依赖
run: pnpm install --frozen-lockfile
- name: 构建所有子包
run: pnpm build
- name: 版本号升级、生成 changelog、自动发布
uses: changesets/action@v1
with:
publish: pnpm release:only
commit: "chore(release): 版本发布"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}