Skip to content

Commit

Permalink
cache npm
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Dec 21, 2023
1 parent a136a70 commit 25ed534
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- run: npm run lint:js

Expand All @@ -28,6 +30,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- run: npm run lint:css

Expand All @@ -39,6 +43,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- run: npm run check-types

Expand All @@ -50,5 +56,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- run: npm test
2 changes: 2 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci --no-audit --no-progress
- name: Build
Expand Down

0 comments on commit 25ed534

Please sign in to comment.