From 870701e8ed574b9b0023b490fd756322f4f179a6 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 10 Dec 2024 12:25:07 -0700 Subject: [PATCH 1/2] Also fix other workflwos --- .github/workflows/changesets_release.yml | 2 -- .github/workflows/deploy_examples.yml | 2 -- .github/workflows/teardown_examples_pr_stack.yml | 2 -- 3 files changed, 6 deletions(-) diff --git a/.github/workflows/changesets_release.yml b/.github/workflows/changesets_release.yml index ecf22ff973..1d6f4f4088 100644 --- a/.github/workflows/changesets_release.yml +++ b/.github/workflows/changesets_release.yml @@ -17,8 +17,6 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 22 diff --git a/.github/workflows/deploy_examples.yml b/.github/workflows/deploy_examples.yml index 358c8abf84..183dcbd2d1 100644 --- a/.github/workflows/deploy_examples.yml +++ b/.github/workflows/deploy_examples.yml @@ -30,8 +30,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/.github/workflows/teardown_examples_pr_stack.yml b/.github/workflows/teardown_examples_pr_stack.yml index 3f7f3bcff8..2bce31dd25 100644 --- a/.github/workflows/teardown_examples_pr_stack.yml +++ b/.github/workflows/teardown_examples_pr_stack.yml @@ -29,8 +29,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 20 From 70132b5267e63e3f92248862ad0bb090ff55f4fd Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 10 Dec 2024 12:42:13 -0700 Subject: [PATCH 2/2] Set the node version globally & for Netlify (#2143) --- .github/workflows/changesets_release.yml | 2 +- .github/workflows/deploy_examples.yml | 3 +-- .github/workflows/teardown_examples_pr_stack.yml | 1 - .github/workflows/ts_test.yml | 6 +++--- package.json | 3 +++ website/netlify.toml | 3 +++ 6 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 website/netlify.toml diff --git a/.github/workflows/changesets_release.yml b/.github/workflows/changesets_release.yml index 1d6f4f4088..976375b163 100644 --- a/.github/workflows/changesets_release.yml +++ b/.github/workflows/changesets_release.yml @@ -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: diff --git a/.github/workflows/deploy_examples.yml b/.github/workflows/deploy_examples.yml index 183dcbd2d1..107d5ca31d 100644 --- a/.github/workflows/deploy_examples.yml +++ b/.github/workflows/deploy_examples.yml @@ -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 @@ -111,4 +111,3 @@ jobs: body: commentBody, }); } - diff --git a/.github/workflows/teardown_examples_pr_stack.yml b/.github/workflows/teardown_examples_pr_stack.yml index 2bce31dd25..c8331efae0 100644 --- a/.github/workflows/teardown_examples_pr_stack.yml +++ b/.github/workflows/teardown_examples_pr_stack.yml @@ -31,7 +31,6 @@ jobs: - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 20 cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ts_test.yml b/.github/workflows/ts_test.yml index 9368c4af38..46e1e4c78f 100644 --- a/.github/workflows/ts_test.yml +++ b/.github/workflows/ts_test.yml @@ -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 @@ -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 @@ -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 diff --git a/package.json b/package.json index 0d64373744..30d2319a5b 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/website/netlify.toml b/website/netlify.toml new file mode 100644 index 0000000000..abd6064d1e --- /dev/null +++ b/website/netlify.toml @@ -0,0 +1,3 @@ +[build.environment] + # Environment variables are set here + NODE_VERSION = "22.12.0"