Skip to content

Commit

Permalink
NEXT-33446 - disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 6, 2024
1 parent 0158807 commit 5bf3ebb
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 48 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached main "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache-main
with:
path: node_modules
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached main "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache-main
# with:
# path: node_modules
# key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install main dependencies (if the cached directory was not found)
if: steps.node-cache-main.outputs.cache-hit != 'true'
# if: steps.node-cache-main.outputs.cache-hit != 'true'
run: npm ci

- name: Publish to Chromatic
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached main "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache-main
with:
path: node_modules
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached main "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache-main
# with:
# path: node_modules
# key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install main dependencies (if the cached directory was not found)
if: steps.node-cache-main.outputs.cache-hit != 'true'
# if: steps.node-cache-main.outputs.cache-hit != 'true'
run: npm ci

- name: Create the static pages directory locally in CI
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build distributed files
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached main "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache-main
with:
path: node_modules
key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached main "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache-main
# with:
# path: node_modules
# key: node-modules-main-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install main dependencies (if the cached directory was not found)
# if: steps.node-cache-main.outputs.cache-hit != 'true'
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Check formatting
Expand All @@ -54,15 +54,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: unit
Expand All @@ -79,15 +79,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Install Playwright
Expand Down

0 comments on commit 5bf3ebb

Please sign in to comment.