File tree 3 files changed +51
-56
lines changed
3 files changed +51
-56
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup node, pnpm, and cache
2
+ description : Setup node and install dependencies using pnpm
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - uses : volta-cli/action@v1
7
+ # minimum supported Node
8
+ with :
9
+ node-version : 18.x
10
+ - name : Cache pnpm modules
11
+ uses : actions/cache@v3
12
+ with :
13
+ path : |
14
+ ~/.pnpm-store
15
+ 'node_modules/'
16
+ 'node_modules/.cache'
17
+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-pnpm-
20
+
21
+ with :
22
+ version : 7.17.1
23
+ run_install : true
Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ install_dependencies :
9
+ name : Install Dependencies
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : volta-cli/action@v1
15
+ - uses : ./.github/actions/pnpm
16
+
17
+
18
+ docs_build :
19
+ name : " Build Docs"
20
+ runs-on : ubuntu-latest
21
+ needs : [install_dependencies]
22
+
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ - uses : ./.github/actions/pnpm
26
+ - run : pnpm docs:build
27
+
28
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments