Skip to content

Commit

Permalink
Add step to cache Node deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bastantoine committed Oct 28, 2023
1 parent 1ff482f commit 0cdfa9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
name: Cache Python deps
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
Expand All @@ -38,6 +38,11 @@ jobs:
node-version: 18
- name: Install Node dependencies
run: npm ci
- uses: actions/cache@v3
name: Cache Node deps
with:
path: ./node_modules
key: venv-${{ hashFiles('package-lock.json') }}
- name: Prepare workspace
run: |
mv build wiki
Expand Down

0 comments on commit 0cdfa9a

Please sign in to comment.