Skip to content

Commit ea63194

Browse files
ci: build and test node 22 lts (#543)
1 parent 9c6b0ee commit ea63194

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- run: corepack enable
1010
- uses: actions/setup-node@v4
1111
with:
12-
node-version: 20
12+
node-version: 22
1313
cache: "yarn"
1414
- name: run eslint
1515
run: |

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: corepack enable
3636
- uses: actions/setup-node@v4
3737
with:
38-
node-version: 20
38+
node-version: 22
3939
registry-url: "https://registry.npmjs.org"
4040
cache: "yarn"
4141
- run: yarn install --immutable

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- run: corepack enable
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20
19+
node-version: 22
2020
cache: "yarn"
2121
- run: yarn install --immutable
2222
- run: yarn sync

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ jobs:
99
- run: corepack enable
1010
- uses: actions/setup-node@v4
1111
with:
12-
node-version: 20
12+
node-version: 22
1313
cache: "yarn"
1414
- name: Install deps, build, then clear deps
1515
run: |
1616
yarn install --immutable
1717
yarn build
1818
rm -rf node_modules
19-
- name: Test on Node 20
19+
- name: Test on Node 22
2020
run: |
2121
node -v
2222
node bin/test.js
2323
# Not using a matrix here since it's simpler
2424
# to just duplicate it and not spawn new instances
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
- name: Test on Node 20
29+
run: |
30+
node -v
31+
node bin/test.js
2532
- uses: actions/setup-node@v4
2633
with:
2734
node-version: 18

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"homepage": "https://github.com/nihalgonsalves/pg-error-enum#readme",
1515
"main": "dist/index.js",
1616
"types": "dist/index.d.ts",
17-
"packageManager": "yarn@4.4.0+sha512.91d93b445d9284e7ed52931369bc89a663414e5582d00eea45c67ddc459a2582919eece27c412d6ffd1bd0793ff35399381cb229326b961798ce4f4cc60ddfdb",
17+
"packageManager": "yarn@4.5.1+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d",
1818
"scripts": {
1919
"sync": "tsx bin/sync.ts",
2020
"clean": "rm -rf ./dist/",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,11 +3723,11 @@ __metadata:
37233723

37243724
"typescript@patch:typescript@npm%3A^5.6.2#optional!builtin<compat/typescript>":
37253725
version: 5.6.2
3726-
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=74658d"
3726+
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=8c6c40"
37273727
bin:
37283728
tsc: bin/tsc
37293729
tsserver: bin/tsserver
3730-
checksum: 10c0/e6c1662e4852e22fe4bbdca471dca3e3edc74f6f1df043135c44a18a7902037023ccb0abdfb754595ca9028df8920f2f8492c00fc3cbb4309079aae8b7de71cd
3730+
checksum: 10c0/94eb47e130d3edd964b76da85975601dcb3604b0c848a36f63ac448d0104e93819d94c8bdf6b07c00120f2ce9c05256b8b6092d23cf5cf1c6fa911159e4d572f
37313731
languageName: node
37323732
linkType: hard
37333733

0 commit comments

Comments
 (0)