pig-ui/.github/workflows/build.yaml
冷冷 6da6a7b270
Some checks failed
npm run build 测试 / task (18.x, npm, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, npm, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, npm, windows-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, pnpm, windows-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, macOS-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, ubuntu-latest) (push) Has been cancelled
npm run build 测试 / task (18.x, yarn, windows-latest) (push) Has been cancelled
同步代码 / gitcode (push) Has been cancelled
同步代码 / gitlink (push) Has been cancelled
同步代码 / gitee (push) Has been cancelled
refactor(ci): 修正github action 构建镜像命令
2024-10-13 19:33:58 +08:00

51 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: npm run build 测试
on:
push:
branches:
- master
- dev
jobs:
task:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
node-version: [18.x]
npm-client: [npm, yarn, pnpm]
steps:
- uses: pnpm/action-setup@v2
if: matrix.npm-client == 'pnpm'
name: Install pnpm
with:
version: 7
run_install: false
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: ${{ matrix.npm-client }} install
- name: Build
run: ${{ matrix.npm-client }} run build
- name: Notify failure
if: ${{ failure() }}
env:
QYWX_ROBOT_URL: ${{ secrets.QYWX_ROBOT_URL }}
run: |
curl -H "Content-Type: application/json" -X POST -d '{
"msgtype": "text",
"text": {
"content": "UI 编译任务任务执行失败请检查https://github.com/pig-mesh/pig-ui"
}
}' $QYWX_ROBOT_URL