Skip to content

Commit b765cad

Browse files
chore: simplification (#147)
* chore: simplification we could target for the node version defined in .nvmrc directly. * Update test.yml * Update .github/workflows/publish.yml Co-authored-by: Tom Pereira <[email protected]> * Update test.yml --------- Co-authored-by: Tom Pereira <[email protected]>
1 parent de07a8b commit b765cad

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 20
14+
node-version-file: .nvmrc
1515
registry-url: https://registry.npmjs.org/
1616
always-auth: true
1717
- run: yarn install --frozen-lockfile

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version-file: .nvmrc
1717
- run: yarn install --frozen-lockfile
1818
- run: yarn ci
1919

@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 22
26+
node-version-file: .nvmrc
2727
- run: yarn install --frozen-lockfile
2828
- run: yarn ci
2929

@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 22
36+
node-version-file: .nvmrc
3737
- run: yarn install --frozen-lockfile
3838
- run: yarn install --frozen-lockfile
3939
working-directory: ./examples/commonjs
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- uses: actions/setup-node@v4
4848
with:
49-
node-version: 22
49+
node-version-file: .nvmrc
5050
- run: yarn install --frozen-lockfile
5151
- run: yarn install --frozen-lockfile
5252
working-directory: ./examples/typescript-bundler
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: actions/setup-node@v4
6161
with:
62-
node-version: 22
62+
node-version-file: .nvmrc
6363
- run: yarn install --frozen-lockfile
6464
- run: yarn install --frozen-lockfile
6565
working-directory: ./examples/typescript-legacy
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/checkout@v4
7373
- uses: actions/setup-node@v4
7474
with:
75-
node-version: 22
75+
node-version-file: .nvmrc
7676
- run: yarn install --frozen-lockfile
7777
- run: yarn install --frozen-lockfile
7878
working-directory: ./examples/typescript-nodenext
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@v4
8686
- uses: actions/setup-node@v4
8787
with:
88-
node-version: 22
88+
node-version-file: .nvmrc
8989
- run: yarn install --frozen-lockfile
9090
- run: yarn install --frozen-lockfile
9191
working-directory: ./examples/vue
@@ -98,7 +98,7 @@ jobs:
9898
- uses: actions/checkout@v4
9999
- uses: actions/setup-node@v4
100100
with:
101-
node-version: 22
101+
node-version-file: .nvmrc
102102
- run: yarn install --frozen-lockfile
103103
- run: yarn install --frozen-lockfile
104104
working-directory: ./examples/web-test-runner
@@ -113,7 +113,7 @@ jobs:
113113
submodules: recursive
114114
- uses: actions/setup-node@v4
115115
with:
116-
node-version: 22
116+
node-version-file: .nvmrc
117117
- uses: actions/setup-python@v5
118118
with:
119119
# REF: https://github.com/web-platform-tests/wpt/issues/44427
@@ -122,4 +122,4 @@ jobs:
122122
run: yarn wpt:hosts
123123
- run: yarn install --frozen-lockfile
124124
- run: yarn build
125-
- run: yarn wpt:test
125+
- run: yarn wpt:test

0 commit comments

Comments
 (0)