Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 27152f6

Browse files
authored
Update to Node 20 (#170)
- Change action to run with Node20 runtime - Use Node20 compatible actions in all workflows - Update NPM dependencies for Node 20 compatibility Thanks to @deejay1 for getting this started!
2 parents c8fad9e + d8758a9 commit 27152f6

File tree

8 files changed

+27331
-9782
lines changed

8 files changed

+27331
-9782
lines changed

.github/workflows/check-dist.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

26-
- name: Set Node.js 16.x
27-
uses: actions/setup-node@v3.7.0
26+
- name: Set Node.js 20.x
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 16.x
30-
29+
node-version: 20.x
30+
cache: npm
31+
3132
- name: Validate package-lock
3233
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm yarn --validate-https
3334

@@ -47,7 +48,7 @@ jobs:
4748
id: diff
4849

4950
# If index.js was different than expected, upload the expected version as an artifact
50-
- uses: actions/upload-artifact@v3
51+
- uses: actions/upload-artifact@v4
5152
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5253
with:
5354
name: dist

.github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: Set Node.js 16.x
15-
uses: actions/setup-node@v3.7.0
13+
- uses: actions/checkout@v4
14+
- name: Set Node.js 20.x
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: 16.x
17+
node-version: 20.x
18+
cache: npm
1819
- run: |
1920
npm -v
2021
node -v
@@ -23,7 +24,7 @@ jobs:
2324
test: # make sure the action works on a clean machine without building
2425
runs-on: ubuntu-latest
2526
steps:
26-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2728
- uses: ./
2829
with:
2930
# to allow the invalid wrapper jar present in test data

.github/workflows/codeql-analysis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
# Initializes the CodeQL tools for scanning.
3030
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v2
31+
uses: github/codeql-action/init@v3
3232
with:
3333
languages: ${{ matrix.language }}
3434
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -39,7 +39,7 @@ jobs:
3939
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4040
# If this step fails, then you should remove it and run the build manually (see below)
4141
- name: Autobuild
42-
uses: github/codeql-action/autobuild@v2
42+
uses: github/codeql-action/autobuild@v3
4343

4444
# ℹ️ Command-line programs to run using the OS shell.
4545
# 📚 https://git.io/JvXDl
@@ -53,4 +53,4 @@ jobs:
5353
# make release
5454

5555
- name: Perform CodeQL Analysis
56-
uses: github/codeql-action/analyze@v2
56+
uses: github/codeql-action/analyze@v3

.tool-versions

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration file for asdf version manager
2+
nodejs 20.10.0

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ outputs:
2121
description: The path of the Gradle Wrapper(s) JAR that failed validation.
2222

2323
runs:
24-
using: 'node16'
24+
using: 'node20'
2525
main: 'dist/index.js'
2626

2727
branding:

0 commit comments

Comments
 (0)