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 9eb4e0f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup NodeJS v18 ⚙️
uses: actions/setup-node@v3
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 9eb4e0f

Please sign in to comment.