From 4f55347a485bcdbfdba12302d8e2a4b6270d5f31 Mon Sep 17 00:00:00 2001 From: bilalabbad Date: Fri, 2 Aug 2024 14:10:05 +0200 Subject: [PATCH] cache node --- .github/workflows/chromatic.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index d1a707d098..c49578021d 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -16,13 +16,14 @@ jobs: name: Run Chromatic runs-on: ubuntu-latest steps: - - name: "Check out repository code" + - name: Check out repository code uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 + - name: Install Node.js + uses: actions/setup-node@v4 with: node-version: 20 + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install dependencies run: npm install - name: Run Chromatic