Skip to content

Commit

Permalink
feat!: upgrade minimum node version to v20
Browse files Browse the repository at this point in the history
As taken from the GitHub Blog:

> Node 16 has reached its end of life, prompting us to initiate
> its deprecation process for GitHub Actions. Our plan is to
> transition all actions to run on Node 20 by Spring 2024.

This commit updates the minimum supported version to Node20.

see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
  • Loading branch information
KevinDeJong-TomTom committed Jan 30, 2024
1 parent 1d32264 commit 65adfdf
Show file tree
Hide file tree
Showing 11 changed files with 476 additions and 571 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ jobs:
- name: Check-out the repository
uses: actions/checkout@v3

- name: Setup Node
- name: Set up Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Install dev dependencies
run: npm install --only=dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Node.js 16.x
- name: Set up Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Node.js 16.x
- name: Set up Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ inputs:
deprecationMessage: 'Replaced by the `validate-pull-request` and `validate-commits` inputs'

runs:
using: 'node16'
using: 'node20'
main: 'dist/validate/index.js'
2 changes: 1 addition & 1 deletion bump/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ outputs:
string if a version bump was not or could not be performed
runs:
using: 'node16'
using: 'node20'
main: '../dist/bump/index.js'
352 changes: 158 additions & 194 deletions dist/bump/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 65adfdf

Please sign in to comment.