diff --git a/.github/actions/examples-tests/action.yml b/.github/actions/examples-tests/action.yml index 5f5a3690f580f..137c2d7cad6dc 100644 --- a/.github/actions/examples-tests/action.yml +++ b/.github/actions/examples-tests/action.yml @@ -24,7 +24,6 @@ runs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ inputs.github-token }}" - node-version: "22" - name: Install Global Turbo uses: ./.github/actions/install-global-turbo diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index ba0e0a52d0f53..1b7fc6d844efc 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -16,7 +16,6 @@ inputs: node-version: description: "Node version to install" required: false - default: "18" runs: using: "composite" @@ -27,6 +26,8 @@ runs: - name: Setup Node.js uses: actions/setup-node@v4 with: + # node-version-file is the default, but can be overridden using node-version + node-version-file: "package.json" node-version: ${{ inputs.node-version }} cache: pnpm diff --git a/.github/actions/setup-turborepo-environment/action.yml b/.github/actions/setup-turborepo-environment/action.yml index d27fe0f42dd44..d2bdc4e124cfc 100644 --- a/.github/actions/setup-turborepo-environment/action.yml +++ b/.github/actions/setup-turborepo-environment/action.yml @@ -7,7 +7,6 @@ inputs: node-version: description: Node version required: false - default: "18" runs: using: "composite" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0f854b9e4572d..1c58a9be4cc25 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,8 +18,6 @@ jobs: uses: actions/checkout@v4 - uses: ./.github/actions/setup-node - with: - node-version: 20 - name: Run link checker run: cd docs/link-checker && pnpm run check-links diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 138c8a1aa4ac2..36c657404c04f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -63,7 +63,6 @@ jobs: uses: ./.github/actions/setup-node with: extra-flags: --no-optional - node-version: "20" - name: Install Global Turbo uses: ./.github/actions/install-global-turbo diff --git a/.github/workflows/test-js-packages.yml b/.github/workflows/test-js-packages.yml index 7858804bb949b..100edb2e08d56 100644 --- a/.github/workflows/test-js-packages.yml +++ b/.github/workflows/test-js-packages.yml @@ -36,6 +36,7 @@ jobs: node-version: - 18 - 20 + - 22 env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} diff --git a/.github/workflows/turborepo-compare-cache-item.yml b/.github/workflows/turborepo-compare-cache-item.yml index 11bc540d5ab71..c66f9a4dfc630 100644 --- a/.github/workflows/turborepo-compare-cache-item.yml +++ b/.github/workflows/turborepo-compare-cache-item.yml @@ -16,10 +16,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 + - name: Setup Node + uses: ./.github/actions/setup-node - name: create-turbo run: | @@ -50,10 +48,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 + - name: Setup Node + uses: ./.github/actions/setup-node - name: create-turbo run: | diff --git a/.github/workflows/turborepo-native-lib-test.yml b/.github/workflows/turborepo-native-lib-test.yml index 9ac95e12f6c42..d7ac408a7c368 100644 --- a/.github/workflows/turborepo-native-lib-test.yml +++ b/.github/workflows/turborepo-native-lib-test.yml @@ -27,6 +27,7 @@ jobs: node-version: - 18 - 20 + - 22 env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} diff --git a/.github/workflows/turborepo-release.yml b/.github/workflows/turborepo-release.yml index 9341634d821d1..de2b85dff4155 100644 --- a/.github/workflows/turborepo-release.yml +++ b/.github/workflows/turborepo-release.yml @@ -109,7 +109,6 @@ jobs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ secrets.GITHUB_TOKEN }}" - node-version: "20" - name: Install Global Turbo uses: ./.github/actions/install-global-turbo with: diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 04ca0d75a7948..97759474a201f 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -135,7 +135,7 @@ jobs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ secrets.GITHUB_TOKEN }}" - node-version: "18.20.2" + node-version: "18.20.2" # TODO: Update integration tests with changed log output in Node.js 22 - name: Install Global Turbo uses: ./.github/actions/install-global-turbo @@ -187,7 +187,6 @@ jobs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ secrets.GITHUB_TOKEN }}" - node-version: "18.20.2" - name: Run cargo fmt check run: | @@ -220,7 +219,6 @@ jobs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ secrets.GITHUB_TOKEN }}" - node-version: "18.20.2" - name: Run cargo check run: | @@ -256,7 +254,6 @@ jobs: uses: ./.github/actions/setup-turborepo-environment with: github-token: "${{ secrets.GITHUB_TOKEN }}" - node-version: "18.20.2" - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.6 diff --git a/.github/workflows/turborepo-top-issues.yml b/.github/workflows/turborepo-top-issues.yml index d9337f8786019..4283893d45831 100644 --- a/.github/workflows/turborepo-top-issues.yml +++ b/.github/workflows/turborepo-top-issues.yml @@ -11,9 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 + - uses: ./.github/actions/setup-node - run: corepack enable - run: pnpm install - name: "Get Top Issues" diff --git a/.github/workflows/update-examples-on-release.yml b/.github/workflows/update-examples-on-release.yml index 8bb26c9bad0de..217315c960814 100644 --- a/.github/workflows/update-examples-on-release.yml +++ b/.github/workflows/update-examples-on-release.yml @@ -9,10 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: 20 + - uses: ./.github/actions/setup-node - name: Upgrade corepack shell: bash diff --git a/.node-version b/.node-version deleted file mode 100644 index 9a2a0e219c9b2..0000000000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -v20 diff --git a/package.json b/package.json index 4956c1bae50d1..f40fff5860bb1 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ }, "packageManager": "pnpm@8.14.0", "engines": { - "node": "20.x" + "node": "22.x" } }