Skip to content

Commit 80d531f

Browse files
authored
feat: upgraded to node v18, added .nvmrc and updated workflows (#28)
* feat: upgraded to node v18, added .nvmrc and updated workflows * refactor: updated packages
1 parent e47436e commit 80d531f

File tree

4 files changed

+1288
-9074
lines changed

4 files changed

+1288
-9074
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ on:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node: [16]
1512
steps:
1613
- name: Checkout
1714
uses: actions/checkout@v2
1815
with:
1916
fetch-depth: 0
17+
- name: Setup Nodejs Env
18+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
2019
- name: Setup Nodejs
2120
uses: actions/setup-node@v1
2221
with:
23-
node-version: ${{ matrix.node }}
22+
node-version: ${{ env.NODE_VER }}
2423
- name: Install dependencies
2524
run: npm ci
2625
- name: Lint

.github/workflows/release.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
18+
- name: Setup Nodejs Env
19+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
1820
- name: Setup Node.js
19-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v3
2022
with:
21-
node-version: 16
23+
node-version: ${{ env.NODE_VER }}
2224
- name: Install dependencies
2325
run: npm ci
2426
- name: Lint

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

0 commit comments

Comments
 (0)