This repository was archived by the owner on Dec 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - " docs/**"
88 - " .github/workflows/docs.yml"
99 - " art/**"
10+ - " cli/**"
1011 pull_request :
1112 branches : [ main ]
1213 workflow_dispatch :
Original file line number Diff line number Diff line change 1+ name : CLI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths :
7+ - " cli/**"
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-node@v3
16+ with :
17+ node-version : 18
18+ - name : Get npm cache directory
19+ id : npm-cache-dir
20+ run : |
21+ echo "::set-output name=dir::$(npm config get cache)"
22+ - uses : actions/cache@v3
23+ id : npm-cache
24+ with :
25+ path : |
26+ ${{ steps.npm-cache-dir.outputs.dir }}
27+ cli/node_modules
28+ key : ${{ runner.os }}-node-${{ hashFiles('**/cli/package-lock.json') }}
29+ restore-keys : |
30+ ${{ runner.os }}-node-
31+ - name : Install dependencies
32+ run : npm ci
33+ if : steps.npm-cache.outputs.cache-hit != 'true'
34+ working-directory : cli
35+ - run : npm run build
36+ working-directory : cli
37+ - run : npm run package
38+ working-directory : cli
39+ - name : Upload artifacts
40+ uses : actions/upload-artifact@v3
41+ with :
42+ name : binaries
43+ path : ./cli/pkg/
44+ retention-days : 1
Original file line number Diff line number Diff line change 1+ pkg /
You can’t perform that action at this time.
0 commit comments