Skip to content

Commit

Permalink
chore: make sure .tool-versions matches package.json (#2155)
Browse files Browse the repository at this point in the history
We always should use `.tool-versions` as the authoritative source across
the toolchain
  • Loading branch information
icehaunter authored Dec 12, 2024
1 parent 9522baa commit 147a4b0
Show file tree
Hide file tree
Showing 6 changed files with 10 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-file: "package.json"
node-version-file: ".tool-versions"
cache: pnpm
- uses: erlef/setup-beam@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .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-file: "package.json"
node-version-file: ".tool-versions"
cache: 'pnpm'

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/teardown_examples_pr_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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-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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
elixir 1.17.2-otp-27
erlang 27.0.1
nodejs 20.2.0
pnpm 9.4.0
nodejs 20.18.1
pnpm 9.15.0
2 changes: 2 additions & 0 deletions website/netlify.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 147a4b0

Please sign in to comment.