-
Notifications
You must be signed in to change notification settings - Fork 12
28 lines (26 loc) · 896 Bytes
/
release.yml
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
name: release
on:
push:
tags:
- '*'
workflow_dispatch: # 添加 workflow_dispatch 触发器
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm install pnpm -g
- run: pnpm install --no-frozen-lockfile
- run: pnpm -C ./packages/font-sharp build
- run: npm pkg set name=cn-font-split
working-directory: packages/subsets
- run: npm run prepublish
working-directory: packages/subsets
- run: npm publish --access public
working-directory: packages/subsets
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}