Skip to content

Commit

Permalink
fix: management of cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 6, 2024
1 parent 10d157c commit b936170
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,30 @@ on:
workflow_dispatch:

jobs:
build-and-test:
frontend-build-check:
name: Frontend Build Check
runs-on: ubuntu-latest
name: Build frontend

# Cache dependencies to speed up the workflow
steps:
- name: Checkout 🛎️
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Set working directory
run: cd frontend

- name: Enable Corepack
run: corepack enable

- name: Set Yarn version to Berry
run: corepack prepare [email protected] --activate

- name: Install dependencies
working-directory: ./frontend
run: yarn install

- name: Build frontend 🔧
- name: Run build
working-directory: ./frontend
run: yarn build

0 comments on commit b936170

Please sign in to comment.