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 77 build :
88 runs-on : ${{ matrix.os }}
99
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+
1015 strategy :
1116 matrix :
1217 node-version : [22.x]
1318 os : [windows-latest, ubuntu-latest]
1419
1520 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 "[email protected] " 21- git config --global user.name "gh-actions"
2221 - uses : actions/checkout@v3
22+ - uses : ./.github/actions/initialize
2323 - uses : pnpm/action-setup@v4
2424 with :
2525 version : 9.10.0
2929 cache : " pnpm"
3030 - run : pnpm i --frozen-lockfile
3131 - name : Use Node.js ${{ matrix.node-version }}
32- uses : actions/setup-node@v1
32+ uses : actions/setup-node@v4
3333 with :
3434 node-version : ${{ matrix.node-version }}
3535 - name : Test & Build
Original file line number Diff line number Diff line change 1818 - uses : pnpm/action-setup@v4
1919 with :
2020 version : 9.10.0
21- - uses : actions/setup-node@v2
21+ - uses : actions/setup-node@v4
2222 with :
2323 node-version : " 22.x"
2424 registry-url : https://npm.pkg.github.com
3838 - uses : pnpm/action-setup@v4
3939 with :
4040 version : 9.10.0
41- - uses : actions/setup-node@v2
41+ - uses : actions/setup-node@v4
4242 with :
4343 node-version : " 22.x"
4444 registry-url : https://npm.pkg.github.com
6060 - uses : pnpm/action-setup@v4
6161 with :
6262 version : 9.10.0
63- - uses : actions/setup-node@v2
63+ - uses : actions/setup-node@v4
6464 with :
6565 node-version : " 22.x"
6666 registry-url : " https://registry.npmjs.org"
Original file line number Diff line number Diff line change 99 if : github.event_name != 'pull_request'
1010 runs-on : ubuntu-latest
1111 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 "[email protected] " 17- git config --global user.name "gh-actions"
1812 - uses : actions/checkout@v3
1913 with :
2014 ref : main
15+ - uses : ./.github/actions/initialize
2116 - uses : pnpm/action-setup@v4
2217 with :
2318 version : 9.10.0
You can’t perform that action at this time.
0 commit comments