Skip to content

Commit d81485c

Browse files
authored
ci: minor adjustments (#13)
* ci: use stable v2 of `setup-node` action * ci: use package caching * ci: use higher LTS version of node * ci: formatting tweaks
1 parent b05499a commit d81485c

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

.github/workflows/checks.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
test-node:
3030
name:
3131
# prettier-ignore
32-
Test on Node.js v${{ matrix.node-version }} and eslint v${{matrix.eslint-version }}
32+
Test on Node.js v${{ matrix.node-version }} and eslint v${{ matrix.eslint-version }}
3333
strategy:
3434
fail-fast: false
3535
matrix:
@@ -40,13 +40,14 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v2
4242
- name: Use Node.js ${{ matrix.node-version }}
43-
uses: actions/setup-node@v2-beta
43+
uses: actions/setup-node@v2
4444
with:
4545
node-version: ${{ matrix.node-version }}
46-
- name: install with eslint v${{matrix.eslint-version }}
46+
cache: npm
47+
- name: install with eslint v${{ matrix.eslint-version }}
4748
run: |
4849
npm ci
49-
npm install -D eslint@${{matrix.eslint-version }}
50+
npm install -D eslint@${{ matrix.eslint-version }}
5051
- name: prettier
5152
run: npm run prettier:check
5253
- name: typecheck
@@ -66,9 +67,10 @@ jobs:
6667

6768
steps:
6869
- uses: actions/checkout@v2
69-
- uses: actions/setup-node@v2-beta
70+
- uses: actions/setup-node@v2
7071
with:
71-
node-version: 12.x
72+
node-version: 14.x
73+
cache: npm
7274
- name: install
7375
run: npm ci
7476
- name: prettier

.github/workflows/release.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2-beta
17+
- uses: actions/setup-node@v2
1818
with:
19-
node-version: '12.x'
20-
21-
- uses: actions/cache@v2
22-
with:
23-
path: ~/.npm
24-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25-
restore-keys: |
26-
${{ runner.os }}-node-
19+
node-version: 14.x
20+
cache: npm
2721

2822
- name: install
2923
run: npm ci

0 commit comments

Comments
 (0)