Skip to content

Commit

Permalink
cache earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 27, 2023
1 parent fa05aba commit e100fed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/foreman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Generate package-lock.json
run: npm install --package-lock-only --no-audit --loglevel verbose
- name: Setup Cache
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Generate package-lock.json
run: npm install --package-lock-only --no-audit --loglevel verbose
- name: Install NPM packages
run: npm ci --no-audit --loglevel verbose
- name: Prepare test env
Expand Down

0 comments on commit e100fed

Please sign in to comment.