From 147a4b051d052561cc8ad78ed9a3c403cf1b6c6a Mon Sep 17 00:00:00 2001 From: Ilia Borovitinov Date: Thu, 12 Dec 2024 12:38:40 +0300 Subject: [PATCH] chore: make sure .tool-versions matches package.json (#2155) We always should use `.tool-versions` as the authoritative source across the toolchain --- .github/workflows/changesets_release.yml | 2 +- .github/workflows/deploy_examples.yml | 2 +- .github/workflows/teardown_examples_pr_stack.yml | 1 + .github/workflows/ts_test.yml | 6 +++--- .tool-versions | 4 ++-- website/netlify.toml | 2 ++ 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/changesets_release.yml b/.github/workflows/changesets_release.yml index 976375b163..2a218e4553 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-file: "package.json" + node-version-file: ".tool-versions" cache: pnpm - uses: erlef/setup-beam@v1 with: diff --git a/.github/workflows/deploy_examples.yml b/.github/workflows/deploy_examples.yml index 107d5ca31d..7716031984 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-file: "package.json" + node-version-file: ".tool-versions" cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/teardown_examples_pr_stack.yml b/.github/workflows/teardown_examples_pr_stack.yml index c8331efae0..6d411e58be 100644 --- a/.github/workflows/teardown_examples_pr_stack.yml +++ b/.github/workflows/teardown_examples_pr_stack.yml @@ -31,6 +31,7 @@ jobs: - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: + node-version-file: ".tool-versions" cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ts_test.yml b/.github/workflows/ts_test.yml index 46e1e4c78f..1ba0feab87 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-file: "package.json" + node-version-file: ".tool-versions" 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-file: "package.json" + node-version-file: ".tool-versions" 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-file: "package.json" + node-version-file: ".tool-versions" cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm -r --filter "$(jq '.name' -r package.json)^..." build diff --git a/.tool-versions b/.tool-versions index 04c22d6d30..58d51dbf3b 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ elixir 1.17.2-otp-27 erlang 27.0.1 -nodejs 20.2.0 -pnpm 9.4.0 \ No newline at end of file +nodejs 20.18.1 +pnpm 9.15.0 diff --git a/website/netlify.toml b/website/netlify.toml index 5cf7e57516..72c77271b1 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -1,3 +1,5 @@ [build.environment] # Environment variables are set here + + # Node version here should match the one in .tool-versions - that's the authoritative source NODE_VERSION = "20.18.1"