-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): upgrade GitHub Actions to Node 20 (#9483)
### Description Upgrade all of our various actions to versions that use Node 20 since Node 16 is getting shut down December 5 Note this does not switch us off of [get-diff-action](https://github.com/technote-space/get-diff-action/) which has been deprecated so we will need to find a new solution. ### Testing Instructions CI on this PR Test Release: [workflow](https://github.com/vercel/turborepo/actions/runs/11955946798) <- failed because I wrote `actions/checkout@4` instead of `actions/checkout@v4` on the last step [workflow with fix](https://github.com/vercel/turborepo/actions/runs/11956800941) You should notice the lack of Node 16 warnings on the workflow summary page: https://github.com/vercel/turborepo/actions/runs/11954973491
- Loading branch information
1 parent
82ae03c
commit c84926f
Showing
9 changed files
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ env: | |
CARGO_PROFILE_RELEASE_LTO: true | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
RELEASE_TURBO_CLI: true # TODO: do we need this? | ||
# Needed since we need to build on Xenial which doesn't have a new enough | ||
# GLIBC to use Node 20. | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -44,7 +41,7 @@ jobs: | |
stage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-node | ||
with: | ||
enable-corepack: false | ||
|
@@ -71,7 +68,7 @@ jobs: | |
steps: | ||
- name: Show Stage Commit | ||
run: echo "${{ needs.stage.outputs.stage-branch }}" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.stage.outputs.stage-branch }} | ||
- name: Setup Turborepo Environment | ||
|
@@ -89,7 +86,7 @@ jobs: | |
steps: | ||
- name: Show Stage Commit | ||
run: echo "${{ needs.stage.outputs.stage-branch }}" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.stage.outputs.stage-branch }} | ||
- name: Setup Turborepo Environment | ||
|
@@ -135,7 +132,7 @@ jobs: | |
- name: Show Stage Commit | ||
run: echo "${{ needs.stage.outputs.stage-branch }}" | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "${{ needs.stage.outputs.stage-branch }}" | ||
|
||
|
@@ -144,7 +141,7 @@ jobs: | |
run: ${{ matrix.settings.container-setup }} | ||
|
||
- name: Setup Protoc | ||
uses: arduino/setup-protoc@v2.1.0 | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
version: "26.x" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -190,7 +187,7 @@ jobs: | |
steps: | ||
- name: Show Stage Commit | ||
run: echo "${{ needs.stage.outputs.stage-branch }}" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: "${{ needs.stage.outputs.stage-branch }}" | ||
- run: git fetch origin --tags | ||
|
@@ -207,7 +204,7 @@ jobs: | |
git config --global user.email '[email protected]' | ||
- name: Install GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
distribution: goreleaser-pro | ||
version: v1.18.2 | ||
|
@@ -249,7 +246,7 @@ jobs: | |
steps: | ||
- name: Show Stage Commit | ||
run: echo "${{ needs.stage.outputs.stage-branch }}" | ||
- uses: actions/checkout@1.0.0 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.stage.outputs.stage-branch }} | ||
- name: Get version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: CI related changes | ||
id: ci | ||
|
@@ -129,7 +129,7 @@ jobs: | |
if: matrix.os.runner == 'windows-latest' | ||
shell: bash | ||
run: git config --global core.autocrlf input | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Turborepo Environment | ||
uses: ./.github/actions/setup-turborepo-environment | ||
|
@@ -141,15 +141,15 @@ jobs: | |
uses: ./.github/actions/install-global-turbo | ||
|
||
- name: Setup Graphviz | ||
uses: ts-graphviz/setup-graphviz@v1 | ||
uses: ts-graphviz/setup-graphviz@v2 | ||
with: | ||
macos-skip-brew-update: "true" | ||
env: | ||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: true | ||
|
||
- name: Cache Prysk | ||
id: cache-prysk | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: cli/.cram_env | ||
key: prysk-venv-${{ matrix.os.runner }} | ||
|
@@ -166,7 +166,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
# Disable corepack. actions/setup-node invokes other package managers and | ||
# that causes corepack to throw an error, so we disable it first. | ||
|
@@ -208,7 +208,7 @@ jobs: | |
- "metal" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
|
@@ -250,7 +250,7 @@ jobs: | |
- "metal" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Turborepo Environment | ||
uses: ./.github/actions/setup-turborepo-environment | ||
|
@@ -291,7 +291,7 @@ jobs: | |
if: matrix.os.name == 'windows' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Turborepo Environment | ||
uses: ./.github/actions/setup-turborepo-environment | ||
|
@@ -300,7 +300,7 @@ jobs: | |
node-version: "18.20.2" | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].3 | ||
uses: mozilla-actions/[email protected].6 | ||
|
||
- name: Run tests | ||
timeout-minutes: 120 | ||
|