tachybase_todo/.gitea/workflows/pr.yaml

34 lines
635 B
YAML
Raw Normal View History

name: PR Workflow
on:
pull_request:
branches:
- dev
permissions:
contents: write
env:
npm_config_registry: ${{ vars.REGISTRY_URL }}
jobs:
CI:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 8.15.5
env:
2024-04-19 18:31:26 +08:00
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.12.0
2024-04-19 18:31:26 +08:00
registry-url: ${{ vars.REGISTRY_URL }}
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Build
run: pnpm build:p