Skip to content

Commit

Permalink
ci(github-actions): node 22 (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed May 11, 2024
1 parent 7a90153 commit 2508962
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:

- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
Expand All @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:

Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
steps:

- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"checker"
],
"engines": {
"node": "^18.0.0 || >= 20.0.0"
"node": "^18.0.0 || ^20.0.0 || >= 22.0.0"
},
"type": "module",
"exports": "./dist/index.js",
Expand Down

0 comments on commit 2508962

Please sign in to comment.