File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed
Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to gist
2+
3+ on :
4+ workflow_dispatch : {}
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+
10+ strategy :
11+ matrix :
12+ node-version : [16.17.1]
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 0
18+ - name : Use Node.js ${{ matrix.node-version }}
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+ - uses : pnpm/action-setup@v2.0.1
23+ name : Install pnpm
24+ id : pnpm-install
25+ with :
26+ version : 7
27+ run_install : false
28+ - name : Get pnpm store directory
29+ id : pnpm-cache
30+ run : |
31+ echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
32+ - uses : actions/cache@v3
33+ name : Setup pnpm cache
34+ with :
35+ path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+ restore-keys : |
38+ ${{ runner.os }}-pnpm-store-
39+ - run : pnpm install
40+ - run : pnpm run pack
41+ - name : upload-to-gist
42+ uses : tim-smart/actions-upload-to-gist@v2
43+ with :
44+ token : ${{ secrets.GIST_TOKEN }}
45+ gist_id : 2249154d563bbbdd603cb09e834361e8
46+ path : build/artifacts
Original file line number Diff line number Diff line change 4545 "docs-update" : " git add --force --all docs/modules || true" ,
4646 "circular" : " madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm" ,
4747 "test" : " vitest" ,
48- "coverage" : " vitest run --coverage"
48+ "coverage" : " vitest run --coverage" ,
49+ "pack" : " pnpm build && cd dist && pnpm pack --pack-destination=../build/artifacts"
4950 },
5051 "exports" : {
5152 "." : {
You can’t perform that action at this time.
0 commit comments