fix: simplify commands in CI workflow by removing unnecessary directory changes
This commit is contained in:
@@ -33,19 +33,13 @@ jobs:
|
||||
run: ls -lah
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd frontend
|
||||
bun install
|
||||
run: bun install
|
||||
|
||||
- name: Run ESLint
|
||||
run: |
|
||||
cd frontend
|
||||
bun run lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Run TypeScript check
|
||||
run: |
|
||||
cd frontend
|
||||
bunx tsc -b --noEmit
|
||||
run: bunx tsc -b --noEmit
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -69,18 +63,14 @@ jobs:
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd frontend
|
||||
bun install
|
||||
run: bun install
|
||||
|
||||
- name: Build application
|
||||
run: |
|
||||
cd frontend
|
||||
bun run build
|
||||
run: bun run build
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: frontend-dist
|
||||
path: frontend/dist/
|
||||
path: dist/
|
||||
retention-days: 7
|
||||
Reference in New Issue
Block a user