Skip to content

Commit

Permalink
Drop node v16 support and upgrade to node v22 (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackermans committed Jul 6, 2024
2 parents 98fb923 + ba80a20 commit c5032dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
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

0 comments on commit c5032dc

Please sign in to comment.