Skip to content

Commit dc8556d

Browse files
authored
(MAJOR) Update node from v16 to v20 (#106)
* Update node from v16 to v20 * Run tests on v20 * Use ubuntu-latest instead of fixed version
1 parent 3d536f0 commit dc8556d

8 files changed

Lines changed: 12 additions & 12 deletions

.github/workflows/auto-git-release-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
tag-and-release:
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-latest
1717
steps:
1818
- name: Fetching all commits for the current branch
1919
uses: actions/checkout@v3

.github/workflows/auto-git-release-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
tag-and-release:
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-latest
1717
steps:
1818
- name: Fetching all commits for the current branch
1919
uses: actions/checkout@v3

.github/workflows/check-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
version: [ 16, 18, 20 ]
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
2020
- run: |

.github/workflows/run-integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
version: [ 16, 18, 20 ]
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
2121
- run: yarn # Install all dependencies

.github/workflows/update-codeclimate-coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
1616
# Ex: Necessary to run `yarn test:coverage`
1717
setup-environment:
18-
name: Setup deployment environment (Ubuntu 22.04 - Node 18.x)
19-
runs-on: ubuntu-22.04
18+
name: Setup deployment environment (Ubuntu 22.04 - Node 20.x)
19+
runs-on: ubuntu-latest
2020
steps:
2121
- name: Installing node.js
2222
uses: actions/setup-node@v3 # Used to install node environment - XXX https://github.com/actions/setup-node
2323
with:
24-
node-version: 18 # Use the same node.js version as the one Vercel's uses (currently node18.x)
24+
node-version: 20 # Use the same node.js version as the one Vercel's uses (currently node20.x)
2525
run-tests-coverage:
2626
name: Run tests coverage and send report to Code Climate
27-
runs-on: ubuntu-22.04
27+
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v3
3030
- name: Installing dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
```yaml
1414
jobs:
1515
wait-for-vercel-deployment:
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-latest
1717
steps:
1818
- uses: UnlyEd/github-action-await-vercel@v1 # TODO best practices recommend to use a fixed version instead of @v1 for production usage (i.e: @v1.2.32)
1919
id: await-vercel
@@ -116,7 +116,7 @@ on:
116116
117117
jobs:
118118
wait-for-vercel-deployment:
119-
runs-on: ubuntu-22.04
119+
runs-on: ubuntu-latest
120120
steps:
121121
- name: Retrieve deployment URL (example on how to set an ENV var)
122122
run: "echo VERCEL_DEPLOYMENT_URL=nextjs-bzyss249z.vercel.app >> $GITHUB_ENV"

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ outputs:
1919
deploymentDetails:
2020
description: 'Forwarded Vercel API response - See https://vercel.com/docs/api#endpoints/deployments/get-a-single-deployment/response-parameters'
2121
runs:
22-
using: 'node16'
22+
using: 'node20'
2323
main: 'github-action-runtime/index.js'

0 commit comments

Comments
 (0)