Skip to content

Commit a0b8248

Browse files
authored
chore(action): use node 16 (#113)
1 parent 392611b commit a0b8248

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@ jobs:
1919
runs-on: ubuntu-20.04
2020
steps:
2121
- uses: actions/checkout@v2
22-
- name: Get yarn cache directory path
23-
id: yarn-cache-dir-path
24-
run: echo "::set-output name=dir::$(yarn cache dir)"
25-
- uses: actions/cache@v2
22+
- uses: actions/setup-node@v2
2623
with:
27-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
28-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29-
restore-keys: |
30-
${{ runner.os }}-yarn-
24+
node-version: "16"
25+
cache: yarn
3126
- run: yarn
3227
- run: yarn lint
3328
- run: yarn build --noEmit

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ inputs:
4343
runs:
4444
using: composite
4545
steps:
46+
- uses: actions/setup-node@v2
47+
with:
48+
node-version: "16"
4649
- name: Set up action
4750
run: |
4851
echo "::group::Set up action"

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"split2": "^4.0.0",
99
"subresources": "^1.2.0"
1010
},
11+
"engines": {
12+
"node": "^16"
13+
},
1114
"scripts": {
1215
"build": "tsc -p tsconfig.prod.json",
1316
"dev": "tsc -p tsconfig.json -w",

0 commit comments

Comments
 (0)