File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ # Ensures package builds correctly
2+ name : Build Package
3+
4+ on :
5+ push :
6+
7+ jobs :
8+ build :
9+ name : Build Packages
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ persist-credentials : false
15+
16+ - name : Setup NodeJS
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version-file : " .nvmrc"
20+
21+ - uses : pnpm/action-setup@v2
22+ name : Install pnpm
23+ with :
24+ version : 9
25+ run_install : false
26+
27+ - name : Get pnpm store directory
28+ shell : bash
29+ run : |
30+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31+
32+ - uses : actions/cache@v3
33+ name : Setup pnpm cache
34+ with :
35+ path : ${{ env.STORE_PATH }}
36+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+ restore-keys : |
38+ ${{ runner.os }}-pnpm-store-
39+
40+ - name : Install dependencies
41+ run : pnpm install
42+
43+ - name : Build
44+ run : pnpm build
Original file line number Diff line number Diff line change 1+ v20.9.0
You can’t perform that action at this time.
0 commit comments