Skip to content

Commit d551cc1

Browse files
authoredJan 4, 2022
chore: update actions Node.js version (#320)
1 parent d8124ff commit d551cc1

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed
 

‎.github/workflows/deploy.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14-
- name: Use Node.js 14
14+
- name: Setup Node.js
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: '14'
17+
node-version-file: '.nvmrc'
18+
cache: 'yarn'
1819
- name: Install dependencies
19-
uses: bahmutov/npm-install@v1
20+
run: yarn install
2021
- name: Build example
2122
run: yarn example:build
2223
- name: Deploy to GitHub pages

‎.github/workflows/release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
15-
- name: Use Node.js 14
15+
- name: Setup Node.js
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '14'
18+
node-version-file: '.nvmrc'
19+
cache: 'yarn'
1920
- name: Install dependencies
20-
uses: bahmutov/npm-install@v1
21+
run: yarn install
2122
- name: Run tests
2223
run: yarn test
2324
- name: Build

‎.github/workflows/tests.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ jobs:
88
name: Node.js ${{ matrix.node }}
99
strategy:
1010
matrix:
11-
node: ['10.x', '11.x', '12.x', '13.x', '14.x', '15.x', '16.x']
11+
node: ['10.x', '11.x', '12.x', '13.x', '14.x', '15.x', '16.x', '17.x']
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515
- name: Setup Node.js ${{ matrix.node }}
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v2
1717
with:
1818
node-version: ${{ matrix.node }}
19+
cache: 'yarn'
1920
- name: Install dependencies
20-
uses: bahmutov/npm-install@v1
21+
run: yarn install
2122
- name: Run tests
2223
run: yarn test:ci

‎.nvmrc

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

0 commit comments

Comments
 (0)
Please sign in to comment.