Skip to content

Commit

Permalink
cache dependencies action
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsinghal87 committed Feb 1, 2024
1 parent 8f789af commit 704270b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
- name: Folder content
working-directory: ./artifacts-outputs
run: ls
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: deps-node-modules-${{ hashFiles('./artifacts-outputs/package-lock.json') }}
- name: Install dependencies
working-directory: ./artifacts-outputs
run: npm ci
Expand All @@ -27,6 +32,11 @@ jobs:
steps:
- name: Get Code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: deps-node-modules-${{ hashFiles('./artifacts-outputs/package-lock.json') }}
- name: Install dependencies
working-directory: ./artifacts-outputs
run: npm ci
Expand Down

0 comments on commit 704270b

Please sign in to comment.