mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
ci: cache deps when running commitlint
This commit is contained in:
parent
0a48910d24
commit
6f63f52e0f
1 changed files with 16 additions and 0 deletions
16
.github/workflows/commitlint.yml
vendored
16
.github/workflows/commitlint.yml
vendored
|
|
@ -13,6 +13,14 @@ jobs:
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.npm
|
||||||
|
**/node_modules
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: run_commitlint
|
id: run_commitlint
|
||||||
|
|
@ -30,6 +38,14 @@ jobs:
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.npm
|
||||||
|
**/node_modules
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- uses: ./
|
- uses: ./
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue