Skip to content

Commit

Permalink
update to new cache keys etc
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Jan 5, 2025
1 parent 1299b83 commit 0c6ca95
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ jobs:

# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-npm
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-npm
cache-name: cache-crawler-yarn
with:
path: ./crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}

- name: Install Node Modules | Crawler
if: steps.cache-crawler-npm.outputs.cache-hit != 'true'
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./crawler

Expand All @@ -116,21 +116,21 @@ jobs:

# build pages frontend
- name: Cache Node Modules | Pages
id: cache-pages-npm
id: cache-pages-yarn
uses: actions/cache@v3
env:
cache-name: cache-pages-npm
cache-name: cache-pages-yarn
with:
path: ./pages/node_modules/
key: cache-pages-npm-${{ hashFiles('pages/package-lock.json') }}
key: cache-pages-yarn-${{ hashFiles('pages/package-lock.json') }}

- name: Install Dependencies
if: steps.cache-pages-npm.outputs.cache-hit != 'true'
run: npm ci
if: steps.cache-pages-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./pages

- name: Build the Frontend for Pages
run: npm run build
run: yarn build
working-directory: ./pages

# upload pages
Expand Down

0 comments on commit 0c6ca95

Please sign in to comment.