Skip to content

Commit d7cc0fa

Browse files
committed
chore: Add .node-version file and update workflows to use it
1 parent 029d2de commit d7cc0fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version-file: .node-version
2323
cache: npm
2424

2525
# Working around https://github.com/npm/cli/issues/4828
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- uses: actions/setup-node@v4
5252
with:
53-
node-version: 18
53+
node-version-file: .node-version
5454
cache: npm
5555
registry-url: "https://registry.npmjs.org"
5656

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.x.x

0 commit comments

Comments
 (0)