website/.forgejo/workflows/build.yaml
Michael Bradley 50ff732413
Some checks failed
Audit / Audit (push) Failing after 9s
Push / Lint (push) Failing after 8s
Push / Build (push) Failing after 8s
Switch to pnpm
TBH I don't really care between pnpm and yarn, but the new runner image only has pnpm so here I go
2025-02-23 07:55:27 -05:00

40 lines
875 B
YAML

---
on: [push]
name: Push
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: pnpm install
- name: Check code formatting
run: pnpm lint:prettier
- name: Check code quality
run: pnpm lint:eslint
- name: Check types
run: pnpm lint:tsc
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Save build
uses: forgejo/upload-artifact@v4
with:
name: webroot
path: dist/prod