Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop node v16 support and upgrade to node v22 #690

Merged
merged 4 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- ubuntu-latest
- windows-latest
node-version:
- 16
- 18
- 20
- 22

steps:
- name: Checkout code
Expand All @@ -33,10 +33,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ matrix.os }}-modules-${{ hashFiles('**/package-lock.json') }}
path: "**/node_modules"
restore-keys: |
${{ matrix.os }}-modules-

Expand Down Expand Up @@ -67,8 +67,6 @@ jobs:
name: Release
needs: build-test
if: github.ref == 'refs/heads/main'
env:
NODE_VERSION: lts/*
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand All @@ -81,9 +79,9 @@ jobs:
uses: actions/checkout@v3

- name: Use Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .tool-versions

- name: Install dependencies
run: npm clean-install
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node 20
node 22
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"semantic-release": "semantic-release"
},
"engines": {
"node": ">= 16"
"node": ">= 18"
},
"keywords": [
"jq",
Expand Down
Loading