Skip to content

Commit

Permalink
fix(release): good use of restore cache for deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Mar 17, 2023
1 parent 86edd53 commit f2e8595
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Cache npm dependencies 🥡
uses: actions/cache/restore@v3
- name: Install project dependencies 📦
run: npm ci --ignore-scripts
- name: Save npm dependencies in cache 🥡
uses: actions/cache/save@v3
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-npm-v3-${{ hashFiles('package-lock.json') }}
- name: Install project dependencies 📦
run: npm ci --ignore-scripts
if: steps.cache-node-modules.outputs.cache-hit != 'true'
release:
name: Release 🏷️
runs-on: ubuntu-latest
Expand Down

0 comments on commit f2e8595

Please sign in to comment.