Skip to content

Commit 44812c2

Browse files
fix(ci-cd): bump github actions to node 24 runtimes (#286)
Clears the "Node.js 20 is deprecated" GitHub Actions annotation by moving every first-party action to a major that declares using: node24. - bump actions/checkout from v4 to v5 in main.yaml, release.yaml, sync-docs.yaml and trivy.yaml - bump actions/setup-node from v4 to v5 in main.yaml and release.yaml - bump node-version from '22' to '24' in release.yaml - drop the stale "UPDATED to v4" comment on the release.yaml setup-node step - keep the main.yaml test matrix at [22, 24]; it already covers Node 24 and dropping 22 would reduce coverage - leave the SHA-pinned aquasecurity/trivy-action step untouched GH-285
1 parent 05263b9 commit 44812c2

5 files changed

Lines changed: 57 additions & 57 deletions

File tree

‎.github/workflows/main.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
matrix:
1414
node-version: [22, 24]
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-node@v5
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: Install Dependencies

‎.github/workflows/release.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
# environment: production # Uncomment if you set an environment name in npm trusted publisher settings
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
with:
1818
# fetch-depth is necessary to get all tags
1919
# otherwise lerna can't detect the changes and will end up bumping the versions for all packages
2020
fetch-depth: 0
2121
token: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
2222

2323
- name: Setup Node
24-
uses: actions/setup-node@v4 # UPDATED to v4
24+
uses: actions/setup-node@v5
2525
with:
26-
node-version: '22'
26+
node-version: '24'
2727
registry-url: 'https://registry.npmjs.org'
2828
always-auth: false # for trusted publishing
2929

‎.github/workflows/sync-docs.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Extension Code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
with:
2323
token: ${{env.GITHUB_TOKEN}}
2424
path: './extension/'
2525

2626
- name: Checkout Docs Repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
with:
2929
token: ${{env.GITHUB_TOKEN}}
3030
repository: ${{env.DOCS_REPO}}

‎.github/workflows/trivy.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Steps represent a sequence of tasks that will be executed as part of the job
2020
steps:
2121
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Run Trivy vulnerability scanner in repo mode
2525
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0

‎package-lock.json‎

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)