Skip to content

Commit 81a68b9

Browse files
ci(github): fix workflow commitlint.yml
1 parent dd9e5d9 commit 81a68b9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/commitlint.yml

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

14+
- name: Cache dependencies
15+
uses: actions/cache@v3
16+
with:
17+
path: |
18+
node_modules
19+
*/*/node_modules
20+
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
21+
id: cache
22+
23+
- name: Install dependencies
24+
if: steps.cache.outputs.cache-hit != 'true'
25+
run: npm install --prefer-offline
26+
1427
- name: Lint commit message
1528
run: npx commitlint --from=HEAD~1

0 commit comments

Comments
 (0)