Mirror iledopapiezowej/frontend: CI on master and PRs, versioned release assets on v* tags, then deploy through ygg/actions/deploy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
885 B
YAML
40 lines
885 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
# Superseding pushes shouldn't each wait for a full build on the shared
|
|
# runner. Releases deliberately aren't covered — cancelling a publish
|
|
# halfway is worse than running it twice.
|
|
concurrency:
|
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: rocky-10
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
# Version comes from the packageManager field in package.json.
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Type check
|
|
run: pnpm check
|
|
|
|
- name: Build
|
|
run: pnpm build
|