File tree 2 files changed +39
-19
lines changed
2 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
jobs :
8
+ build :
9
+ runs-on : ubuntu-20.04
10
+ strategy :
11
+ matrix :
12
+ node-version : [20]
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : pnpm/action-setup@v2
16
+ with :
17
+ version : 8
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ cache : " pnpm"
23
+ - name : Install dependencies
24
+ run : pnpm install
25
+
26
+ - name : Build
27
+ run : pnpm build
28
+
8
29
publish :
9
30
runs-on : ubuntu-latest
10
31
Original file line number Diff line number Diff line change 1
- name : pnpm Example Workflow
1
+ name : Build and Test
2
2
on :
3
3
push :
4
4
jobs :
8
8
matrix :
9
9
node-version : [20]
10
10
steps :
11
- - uses : actions/checkout@v3
12
- - uses : pnpm/action-setup@v2
13
- with :
14
- version : 8
15
- - name : Use Node.js ${{ matrix.node-version }}
16
- uses : actions/setup-node@v3
17
- with :
18
- node-version : ${{ matrix.node-version }}
19
- cache : ' pnpm'
20
- - name : Install dependencies
21
- run : pnpm install
22
-
23
- - name : Build
24
- run : pnpm build
25
-
26
- - name : Run tests
27
- run : pnpm test
28
-
11
+ - uses : actions/checkout@v3
12
+ - uses : pnpm/action-setup@v2
13
+ with :
14
+ version : 8
15
+ - name : Use Node.js ${{ matrix.node-version }}
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : ${{ matrix.node-version }}
19
+ cache : " pnpm"
20
+ - name : Install dependencies
21
+ run : pnpm install
22
+
23
+ - name : Build
24
+ run : pnpm build
25
+
26
+ - name : Run tests
27
+ run : pnpm test
You can’t perform that action at this time.
0 commit comments