Files
TheGrapefruitsDuo/.gitea/workflows/client-build.yml
Lucas Jensen 63f50dd1c7 only build on PR (#2)
Reviewed-on: #2
2025-03-15 04:39:31 +00:00

34 lines
611 B
YAML

name: react client build
on:
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Lint
working-directory: client
run: |
npm install
npm run prettier:check
- name: Build
working-directory: client
run: |
npm install
npm run build