Skip to content

Commit

Permalink
Put the node version in .node-version
Browse files Browse the repository at this point in the history
Netlify cannot read .tool-versions when it builds the site.
  • Loading branch information
canac committed Nov 12, 2024
1 parent 62cbabb commit ee8d4e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache
- name: πŸ§ͺ Run Tests
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache
- name: πŸ’¨ ESLint
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache
- name: βœ… TypeScript lint
Expand All @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache
- name: πŸ’… Prettier Check
Expand All @@ -69,7 +69,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache --check-cache
deploy:
Expand All @@ -82,7 +82,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
node-version-file: .node-version
- name: πŸ“¦ Install Dependencies
run: yarn install --immutable --immutable-cache
- name: πŸ”¨ Build
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.20.4
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
nodejs 18.20.4
yarn 1.22.17

0 comments on commit ee8d4e5

Please sign in to comment.