-
-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (47 loc) 路 1.22 KB
/
Copy pathrelease.yaml
File metadata and controls
56 lines (47 loc) 路 1.22 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release
on:
pull_request:
branches:
- main
types:
- closed
env:
EM_VERSION: 3.1.72
jobs:
release:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [24]
permissions:
contents: read
id-token: write
# release銉栥儵銉炽儊銇嬨倝main銇玃R銇屻優銉笺偢銇曘倢銇熴倝
if: |
github.event.pull_request.merged == true
&& startsWith(github.head_ref, 'release/v')
steps:
- uses: actions/checkout@v6
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{env.EM_VERSION}}
- name: resolve git submodule
run: git submodule update --init --recursive
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 10
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build:all
- name: Publish
run: pnpm publish:all
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}