mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +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
|
||||
with:
|
||||
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
|
||||
- uses: ./
|
||||
id: run_commitlint
|
||||
|
|
@ -30,6 +38,14 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
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
|
||||
- uses: ./
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue