Skip to content

Commit

Permalink
ci: yarn setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Aug 20, 2024
1 parent cac7ae4 commit 41c2c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
build-next:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js- Cache dependencies- Install dependencies
uses: ./.github/workflows/setup-node
Expand All @@ -35,7 +35,7 @@ jobs:
with:
static_site_generator: next
- name: Build with Next.js
run: npx next build
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ runs:
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('app/package-lock.json') }}
key: yarn-cache-${{ hashFiles('app/yarn.lock') }}

- name: Install dependencies
shell: bash
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: |
cd app
npm ci
yarn install --frozen-lockfile

0 comments on commit 41c2c67

Please sign in to comment.