Skip to content

Commit 8968376

Browse files
authored
chore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-node' (#1028)
* chore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-node' * chore(.github/workflows): add single quote for consistency
1 parent c011cd7 commit 8968376

7 files changed

+8
-8
lines changed

.github/workflows/compressed-size-action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: pnpm/action-setup@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 20
13+
node-version: 'lts/*'
1414
cache: 'pnpm'
1515
- uses: preactjs/compressed-size-action@v2
1616
with:

.github/workflows/cr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: pnpm/action-setup@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 20
13+
node-version: 'lts/*'
1414
cache: 'pnpm'
1515
- run: pnpm install
1616
- run: pnpm build

.github/workflows/lint-and-type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 'lts/*'
1818
cache: 'pnpm'
1919
- run: pnpm install
2020
- run: pnpm test:format

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: pnpm/action-setup@v4
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 20
15+
node-version: 'lts/*'
1616
registry-url: 'https://registry.npmjs.org'
1717
cache: 'pnpm'
1818
- run: pnpm install

.github/workflows/test-multiple-builds.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: pnpm/action-setup@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
22+
node-version: 'lts/*'
2323
cache: 'pnpm'
2424
- run: pnpm install
2525
- run: pnpm build

.github/workflows/test-multiple-versions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 'lts/*'
1818
cache: 'pnpm'
1919
- run: pnpm install
2020
- run: pnpm build # we don't have any other workflows to test build
@@ -38,7 +38,7 @@ jobs:
3838
- uses: pnpm/action-setup@v4
3939
- uses: actions/setup-node@v4
4040
with:
41-
node-version: 20
41+
node-version: 'lts/*'
4242
cache: 'pnpm'
4343
- run: pnpm install
4444
- run: pnpm build # for macro test

.github/workflows/test-old-typescript.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: pnpm/action-setup@v4
3030
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 20
32+
node-version: 'lts/*'
3333
cache: 'pnpm'
3434
- run: pnpm install
3535
- run: pnpm build

0 commit comments

Comments
 (0)