diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92f574b..87bc341 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,15 +14,8 @@ jobs: # TODO: add version to a .nvmrc or at least a variable node-version: 18.12.1 cache: npm - - name: Cache node modules - id: cache-packages - uses: actions/cache@v3 - with: - path: ./node_modules - key: ${{ hashFiles('package-lock.json') }} - name: Install - if: ${{ steps.cache-packages.outputs.cache-hit != 'true' }} - run: npm ci --omit=dev + run: npm ci --omit=dev --prefer-offline - name: Build run: npm run build - name: Upload artifact diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cadcfbb..c4b8e05 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,13 +14,7 @@ jobs: # TODO: add version to a .nvmrc or at least a variable node-version: 18.12.1 cache: npm - - name: Cache node modules - id: cache-packages - uses: actions/cache@v3 - with: - path: ./node_modules - key: ${{ hashFiles('package-lock.json') }} - name: Install - run: npm ci + run: npm ci --prefer-offline - name: Run tests run: npm run test:unit