Skip to content

Commit

Permalink
Test without NPM cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed Dec 18, 2024
1 parent 0c4c974 commit f152e2d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@ jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4
with:
node-version: 22
cache: "npm"
fetch-depth: 1

- uses: actions/cache@v4
env:
cache-name: cache-node-modules
- name: Set up Node.js
uses: actions/setup-node@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
node-version: 22

- run: npm ci
- run: npm run lint
Expand Down

0 comments on commit f152e2d

Please sign in to comment.