Skip to content

Commit

Permalink
fix: try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigercrl committed Jan 29, 2025
1 parent dff2d43 commit eb8fbdd
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,25 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*

- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate
- name: Install PNPM
run: npm i -g pnpm

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install frontend dependencies
run: pnpm install

- name: Switch to frontend root
run: cd apps/frontend

- name: Build frontend
run: pnpm --filter=@modrinth/frontend run build
- name: Build website
run: pnpm web:build

- name: Upload output
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: output
path: apps/frontend/.output
name: frontend
path: ./apps/frontend/.output

0 comments on commit eb8fbdd

Please sign in to comment.