@@ -22,28 +22,47 @@ jobs:
2222 build :
2323 strategy :
2424 matrix :
25- os : [ubuntu-latest, windows-latest]
26- npm : [8]
2725 include :
2826 - os : ubuntu-latest
2927 # npm 6 and 8 have slightly different behavior with verdaccio in publishing tests.
3028 # It's unclear if this translates to meaningful differences in behavior in actual scenarios,
3129 # but test against both versions to be safe. (Only do this on the ubuntu build for speed.)
3230 npm : 6
31+ node : 14
32+ # node 14/npm 8 on ubuntu and windows
33+ - os : ubuntu-latest
34+ npm : 8
35+ node : 14
36+ - os : windows-latest
37+ npm : 8
38+ node : 14
39+ # node 22/npm 11 on ubuntu and windows
40+ - os : ubuntu-latest
41+ npm : 11
42+ node : 22
43+ - os : windows-latest
44+ npm : 11
45+ node : 22
3346
34- name : build (${{ matrix.os }}, npm ${{ matrix.npm }})
47+ name : build (${{ matrix.os }}, node ${{ matrix.node }}, npm ${{ matrix.npm }})
3548
3649 runs-on : ${{ matrix.os }}
3750
3851 steps :
3952 - name : Check out code
4053 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4154
42- - name : Install Node.js from .nvmrc
55+ - name : Install Node.js ${{ matrix.node }}
4356 uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
4457 with :
4558 cache : yarn
46- node-version-file : .nvmrc
59+ node-version : ${{ matrix.node }}
60+
61+ # Temporary extra command to work around weird node issue (swich to just npm i -g npm once fixed)
62+ # https://github.com/nodejs/node/issues/62425#issuecomment-4200715930
63+ - name : node 22 npm workaround
64+ if : matrix.node == 22
65+ run : npm i -g npm@10.9.8
4766
4867 # Guarantee a predictable version of npm for the first round of tests
4968 - name : Install npm@${{ matrix.npm }}
0 commit comments