-
-
Notifications
You must be signed in to change notification settings - Fork 108
48 lines (46 loc) · 1.09 KB
/
validate.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Validate
on:
push:
branches:
- master
paths:
- 'xmcl-runtime/**'
- 'xmcl-runtime-api/**'
- 'xmcl-keystone-ui/**'
- 'xmcl-electron-app/**'
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: pnpm/action-setup@v4
with:
version: 9.3.0
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install
run: |
pnpm install
- name: Lint
run: |
pnpm lint
- name: Check
run: |
pnpm check
- name: Build
run: |
pnpm run --prefix xmcl-keystone-ui build
pnpm run --prefix xmcl-electron-app build
env:
BUILD_NUMBER: ${{ github.run_number }}
NODE_ENV: production
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_TOKEN }}
WIN_CSC_LINK: ${{ secrets.CODE_SIGN_BASE64 }}
APPX_PUBLISHER: ${{ secrets.APPX_PUBLISHER }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_PWD }}