Skip to content

Commit 00e1548

Browse files
ci(github): remove actions/cache in build.yml and commitlint.yml
1 parent edafb36 commit 00e1548

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,10 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v3
1414
with:
15-
# http://karma-runner.github.io/6.3/intro/installation.html
16-
node-version: 14
17-
18-
- name: Cache dependencies
19-
uses: actions/cache@v3
20-
with:
21-
path: |
22-
node_modules
23-
*/*/node_modules
24-
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
25-
id: cache
15+
cache: npm
16+
node-version-file: .nvmrc
2617

2718
- name: Install dependencies
28-
if: steps.cache.outputs.cache-hit != 'true'
2919
run: npm install --prefer-offline
3020

3121
- name: Lint JavaScript

.github/workflows/commitlint.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ jobs:
1111
with:
1212
fetch-depth: 0
1313

14-
- name: Cache dependencies
15-
uses: actions/cache@v3
14+
- name: Use Node.js
15+
uses: actions/setup-node@v3
1616
with:
17-
path: |
18-
node_modules
19-
*/*/node_modules
20-
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
21-
id: cache
17+
cache: npm
18+
node-version-file: .nvmrc
2219

2320
- name: Install dependencies
24-
if: steps.cache.outputs.cache-hit != 'true'
2521
run: npm install --prefer-offline
2622

2723
- name: Lint commit message

0 commit comments

Comments
 (0)