Skip to content

Commit

Permalink
Set the node version globally & for Netlify (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Dec 10, 2024
1 parent 870701e commit 70132b5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changesets_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version-file: "package.json"
cache: pnpm
- uses: erlef/setup-beam@v1
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: "package.json"
cache: 'pnpm'

- name: Install dependencies
Expand Down Expand Up @@ -111,4 +111,3 @@ jobs:
body: commentBody,
});
}
1 change: 0 additions & 1 deletion .github/workflows/teardown_examples_pr_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ts_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: "package.json"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm -r --filter "$(jq '.name' -r package.json)^..." build
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: "package.json"
cache: pnpm
- run: pnpm install --frozen-lockfile

Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: "package.json"
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm -r --filter "$(jq '.name' -r package.json)^..." build
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"@changesets/cli": "^2.27.10",
"dotenv-cli": "^7.4.2"
},
"engines": {
"node": "^22.0.0"
},
"packageManager": "pnpm@9.15.0",
"private": true,
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions website/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build.environment]
# Environment variables are set here
NODE_VERSION = "22.12.0"

0 comments on commit 70132b5

Please sign in to comment.