Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 109170c

Browse files
committed
Add CLI
1 parent 3fa6edc commit 109170c

10 files changed

Lines changed: 3976 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- "docs/**"
88
- ".github/workflows/docs.yml"
99
- "art/**"
10+
- "cli/**"
1011
pull_request:
1112
branches: [ main ]
1213
workflow_dispatch:

.github/workflows/cli.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

cli/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg/

0 commit comments

Comments
 (0)