Skip to content

Commit 5178299

Browse files
committed
Add versions of node through 22 in CI
1 parent 2ca74e2 commit 5178299

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
20+
node-version: 22
2121
- run: npm ci
2222
- run: npm run-s test:lint
2323
lint-example:
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-node@v4
2929
with:
30-
node-version: 20
30+
node-version: 22
3131
- run: npm ci
3232
- working-directory: ./example
3333
run: npm ci
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v4
4141
- uses: actions/setup-node@v4
4242
with:
43-
node-version: 20
43+
node-version: 22
4444
- run: npm ci
4545
- run: npm run-s test:prettier
4646
prettier-example:
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- uses: actions/setup-node@v4
5252
with:
53-
node-version: 20
53+
node-version: 22
5454
- run: npm ci
5555
- working-directory: ./example
5656
run: npm ci
@@ -63,7 +63,7 @@ jobs:
6363
- uses: actions/checkout@v4
6464
- uses: actions/setup-node@v4
6565
with:
66-
node-version: 20
66+
node-version: 22
6767
- run: npm ci
6868
- run: npm run-s test:ts
6969
test:
@@ -73,7 +73,7 @@ jobs:
7373
- uses: actions/checkout@v4
7474
- uses: actions/setup-node@v4
7575
with:
76-
node-version: 20
76+
node-version: 22
7777
- run: npm ci
7878
- run: npm run-s test:unit
7979
- uses: coverallsapp/[email protected]
@@ -106,6 +106,7 @@ jobs:
106106
node_version:
107107
- 18
108108
- 20
109+
- 22
109110
os:
110111
- macos-latest
111112
- ubuntu-latest
@@ -122,12 +123,12 @@ jobs:
122123
run: npm install
123124
- working-directory: ./example
124125
run: npm run build
125-
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.action == 'published')
126+
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 22 && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.action == 'published')
126127
uses: actions/upload-artifact@v4
127128
with:
128129
name: dist
129130
path: dist/**
130-
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && github.event_name == 'push' && github.ref == 'refs/heads/main'
131+
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 22 && github.event_name == 'push' && github.ref == 'refs/heads/main'
131132
uses: actions/upload-artifact@v4
132133
with:
133134
name: example-app
@@ -149,7 +150,7 @@ jobs:
149150
- uses: actions/checkout@v4
150151
- uses: actions/setup-node@v4
151152
with:
152-
node-version: 20
153+
node-version: 22
153154
- run: npm ci
154155
- uses: actions/download-artifact@v4
155156
with:
@@ -185,7 +186,7 @@ jobs:
185186
- uses: actions/setup-node@v4
186187
with:
187188
registry-url: https://registry.npmjs.org/
188-
node-version: 20
189+
node-version: 22
189190
- run: npm ci
190191
- uses: actions/download-artifact@v4
191192
with:

0 commit comments

Comments
 (0)