web/.gitea/workflows/build.yml
Workflow config file is invalid. Please check your config file: yaml: line 42: did not find expected alphabetic or numeric character
2025-05-09 06:03:48 +09:00

43 lines
835 B
YAML

name: Build
on:
workflow_dispatch:
push:
paths:
- "src/**/*"
- "package.json"
- "package-lock.json"
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened ]
paths:
- "src/**/*"
- "package.json"
- "package-lock.json"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Build all variants
run: npm run build:all
- name: Publish artifact
uses: christopherhx/gitea-upload-artifact@v4
with:
name: um-web-all
path: *.zip