File tree Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
-
3
- # Run the workflow when a Pull Request is opened or when changes are pushed to master
4
2
on :
5
3
push :
6
4
branches :
@@ -16,21 +14,22 @@ jobs:
16
14
name : Node.js ${{ matrix.node }}
17
15
18
16
steps :
19
- - uses : actions/checkout@v3
20
-
17
+ - uses : actions/checkout@v2
18
+ - uses : pnpm/action-setup@v2.0.1
19
+ with :
20
+ version : 6.24.4
21
21
- name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v3
22
+ uses : actions/setup-node@v2
23
23
with :
24
24
node-version : ${{ matrix.node-version }}
25
- cache : " yarn"
26
- - name : Install yarn latest
27
- run : yarn set version berry && yarn set version latest
25
+ cache : " pnpm"
28
26
- name : Install deps
29
- run : yarn
27
+ run : pnpm install
30
28
- name : Build
31
- run : yarn build
29
+ run : pnpm build
30
+
32
31
- name : Release
33
32
env :
34
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
34
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36
- run : yarn run semantic-release
35
+ run : pnpm semantic-release
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
runner-job :
11
11
runs-on : ubuntu-latest
12
+ env :
13
+ NODE_ENV : production
14
+
12
15
strategy :
13
16
matrix :
14
- node-version : [14 .x, 16 .x, 18 .x]
17
+ node-version : [16 .x, 18 .x, 19 .x]
15
18
16
19
name : Node.js ${{ matrix.node }}
17
20
18
21
steps :
19
- - uses : actions/checkout@v3
20
-
22
+ - uses : actions/checkout@v2
23
+ - uses : pnpm/action-setup@v2.0.1
24
+ with :
25
+ version : 7.20.0
21
26
- name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v3
27
+ uses : actions/setup-node@v2
23
28
with :
24
29
node-version : ${{ matrix.node-version }}
25
- cache : " yarn"
26
- - name : Install yarn latest
27
- run : yarn set version berry && yarn set version latest
30
+ cache : " pnpm"
28
31
- name : Install deps
29
- run : yarn
32
+ run : pnpm install
30
33
- name : Linting
31
- run : yarn lint
34
+ run : pnpm lint
32
35
- name : Test
33
- run : yarn test
36
+ run : pnpm test
You can’t perform that action at this time.
0 commit comments