Skip to content

Commit 6aa50ac

Browse files
authored
chore(ci): update GitHub Actions and Node.js to supported versions (#450)
- Update actions/checkout from v2 to v4 - Update actions/setup-node from v1 to v4 - Update Node.js versions in build.yml from 12.x,14.x to 18.x,20.x,22.x - Update Node.js version in build-and-publish.yml from 14.x to 20.x Fixes #449 Signed-off-by: Shubh-Raj <shubhraj625@gmail.com>
1 parent de77040 commit 6aa50ac

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [14.x]
19+
node-version: [20.x]
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v4
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929

.github/workflows/build.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@ jobs:
1111
name: Unit Tests
1212
timeout-minutes: 15
1313

14-
strategy:
15-
matrix:
16-
node-version:
17-
- 18.x
18-
- 20.x
19-
os:
20-
- ubuntu-latest
21-
- windows-latest
22-
- macOS-latest
14+
strategy:
15+
matrix:
16+
node-version:
17+
- 18.x
18+
- 20.x
19+
- 22.x
20+
os:
21+
- ubuntu-latest
22+
- windows-latest
23+
- macOS-latest
2324

2425
runs-on: ${{ matrix.os }}
2526

26-
steps:
27-
- name: git checkout
28-
uses: actions/checkout@v4
27+
steps:
28+
- name: git checkout
29+
uses: actions/checkout@v4
2930

30-
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ matrix.node-version }}
34-
35-
- run: npm ci
36-
- run: npm test
31+
- name: Use Node.js ${{ matrix.node-version }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
36+
- run: npm ci
37+
- run: npm test

0 commit comments

Comments
 (0)