2024-04-19 08:19:40 +08:00
|
|
|
name: PR Workflow
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2024-07-17 21:48:49 +08:00
|
|
|
env:
|
|
|
|
npm_config_registry: ${{ vars.REGISTRY_URL }}
|
|
|
|
|
2024-04-19 08:19:40 +08:00
|
|
|
jobs:
|
|
|
|
CI:
|
2024-08-08 18:07:24 +08:00
|
|
|
runs-on: ubuntu-20.04
|
2024-04-19 08:19:40 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2024-08-09 02:43:27 +08:00
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup Node.js
|
2024-04-19 18:31:26 +08:00
|
|
|
uses: actions/setup-node@v4
|
2024-04-19 08:19:40 +08:00
|
|
|
with:
|
2024-08-09 02:43:27 +08:00
|
|
|
node-version: 20.16.0
|
2024-04-19 18:31:26 +08:00
|
|
|
registry-url: ${{ vars.REGISTRY_URL }}
|
|
|
|
cache: 'pnpm'
|
|
|
|
- name: Install deps
|
2024-04-19 08:19:40 +08:00
|
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
|
|
run: pnpm build:p
|