File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 7
7
build :
8
8
runs-on : ${{ matrix.os }}
9
9
10
+ # @see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ matrix.os }}-${{ github.ref }}
13
+ cancel-in-progress : true
14
+
10
15
strategy :
11
16
matrix :
12
17
node-version : [22.x]
13
18
os : [windows-latest, ubuntu-latest]
14
19
15
20
steps :
16
- - name : Setup Git Config
17
- run : |
18
- git config --global core.autocrlf false
19
- git config --global core.eol lf
20
- git config --global user.email "actions@gihub.com"
21
- git config --global user.name "gh-actions"
22
21
- uses : actions/checkout@v3
22
+ - uses : ./.github/actions/initialize
23
23
- uses : pnpm/action-setup@v4
24
24
with :
25
25
version : 9.10.0
29
29
cache : " pnpm"
30
30
- run : pnpm i --frozen-lockfile
31
31
- name : Use Node.js ${{ matrix.node-version }}
32
- uses : actions/setup-node@v1
32
+ uses : actions/setup-node@v4
33
33
with :
34
34
node-version : ${{ matrix.node-version }}
35
35
- name : Test & Build
Original file line number Diff line number Diff line change 18
18
- uses : pnpm/action-setup@v4
19
19
with :
20
20
version : 9.10.0
21
- - uses : actions/setup-node@v2
21
+ - uses : actions/setup-node@v4
22
22
with :
23
23
node-version : " 22.x"
24
24
registry-url : https://npm.pkg.github.com
38
38
- uses : pnpm/action-setup@v4
39
39
with :
40
40
version : 9.10.0
41
- - uses : actions/setup-node@v2
41
+ - uses : actions/setup-node@v4
42
42
with :
43
43
node-version : " 22.x"
44
44
registry-url : https://npm.pkg.github.com
60
60
- uses : pnpm/action-setup@v4
61
61
with :
62
62
version : 9.10.0
63
- - uses : actions/setup-node@v2
63
+ - uses : actions/setup-node@v4
64
64
with :
65
65
node-version : " 22.x"
66
66
registry-url : " https://registry.npmjs.org"
Original file line number Diff line number Diff line change 9
9
if : github.event_name != 'pull_request'
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Setup Git Config
13
- run : |
14
- git config --global core.autocrlf false
15
- git config --global core.eol lf
16
- git config --global user.email "actions@gihub.com"
17
- git config --global user.name "gh-actions"
18
12
- uses : actions/checkout@v3
19
13
with :
20
14
ref : main
15
+ - uses : ./.github/actions/initialize
21
16
- uses : pnpm/action-setup@v4
22
17
with :
23
18
version : 9.10.0
You can’t perform that action at this time.
0 commit comments