Skip to content

Commit

Permalink
fix(repo): Adjust npm cache (#4009)
Browse files Browse the repository at this point in the history
  • Loading branch information
brkalow authored Aug 22, 2024
1 parent 2d07340 commit cb64c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .changeset/gorgeous-lizards-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
24 changes: 3 additions & 21 deletions .github/actions/init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,15 @@ runs:
- name: Setup NodeJS ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: '**/package-lock.json'
node-version: ${{ inputs.node-version }}
registry-url: ${{ inputs.registry-url }}

- name: NPM debug
shell: bash
run: npm config ls -l

- name: Restore node_modules
uses: actions/cache/restore@v4
id: cache-npm
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ inputs.node-version }}-node-modules-${{ hashFiles('**/package-lock.json') }}-v6
restore-keys: ${{ runner.os }}-node-${{ inputs.node-version }}-node-modules-

- name: Install NPM Dependencies
# if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --prefer-offline --audit=false --fund=false --verbose
run: npm ci --audit=false --fund=false
shell: bash

- name: Cache node_modules
uses: actions/cache/save@v4
if: steps.cache-npm.outputs.cache-hit != 'true'
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ inputs.node-version }}-node-modules-${{ hashFiles('**/package-lock.json') }}-v6

- name: Get Playwright Version
if: inputs.playwright-enabled == 'true'
shell: bash
Expand Down

0 comments on commit cb64c10

Please sign in to comment.