@@ -5,9 +5,12 @@ name: PR
55
66on :
77 pull_request :
8- branches : [main]
8+ branches : [main, next ]
99 push :
10- branches : [main]
10+ branches : [main, next]
11+
12+ env :
13+ npmVersion : 10
1114
1215concurrency :
1316 # For PRs, use the ref (branch) in the concurrency group so that new pushes cancel any old runs.
2326 strategy :
2427 matrix :
2528 os : [ubuntu-latest, windows-latest]
26- npm : [8]
27- include :
28- - os : ubuntu-latest
29- # npm 6 and 8 have slightly different behavior with verdaccio in publishing tests.
30- # It's unclear if this translates to meaningful differences in behavior in actual scenarios,
31- # but test against both versions to be safe. (Only do this on the ubuntu build for speed.)
32- npm : 6
3329
34- name : build (${{ matrix.os }}, npm ${{ matrix.npm }} )
30+ name : build (${{ matrix.os }})
3531
3632 runs-on : ${{ matrix.os }}
3733
@@ -45,11 +41,11 @@ jobs:
4541 cache : yarn
4642 node-version-file : .nvmrc
4743
48- # Guarantee a predictable version of npm for the first round of tests
49- - name : Install npm@${{ matrix.npm }}
50- run : npm install --global npm@${{ matrix.npm }}
44+ # Guarantee a predictable version of npm
45+ - name : Install npm@${{ env.npmVersion }}
46+ run : npm install --global npm@${{ env.npmVersion }}
5147
52- - run : yarn --frozen-lockfile
48+ - run : yarn --immutable
5349
5450 - run : yarn build
5551
6460
6561 - run : yarn test:func
6662
67- - run : yarn test:e2e
63+ - name : yarn test:e2e (npm ${{ env.npmVersion }})
64+ run : yarn test:e2e
6865
69- # The docs have a separate installation using Node 22 due to needing newer dependencies
66+ # The docs have a separate installation using Node 22
7067 docs :
7168 name : build docs
7269
@@ -76,11 +73,11 @@ jobs:
7673 - name : Check out code
7774 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7875
79- - name : Install Node.js 22
76+ - name : Install Node.js
8077 uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
8178 with :
8279 cache : yarn
83- node-version : 24
80+ node-version-file : .nvmrc
8481
8582 - run : yarn --immutable
8683 working-directory : ./docs
0 commit comments