diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index edb3818..cb9e44d 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -10,16 +10,17 @@ jobs: steps: - name: Checkout 🛬 uses: actions/checkout@v4 - - name: Setup Node ⚙️ - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - name: Cache Dependencies ⌛️ - uses: 'actions/cache@v4' + uses: actions/cache@v4 id: cache-node-modules with: path: 'node_modules' - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/node.yml') }} + - name: Setup Node ⚙️ + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: npm - name: Install dependencies 📥 if: steps.cache-node-modules.outputs.cache-hit != 'true' run: npm ci