From 704270bee2b8bc4c56b5880ee2e0ee52bf007f5c Mon Sep 17 00:00:00 2001 From: Vaibhav Singhal Date: Thu, 1 Feb 2024 19:11:01 +0000 Subject: [PATCH] cache dependencies action --- .github/workflows/demo.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index e4ce400..c9d3d43 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -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 @@ -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