parent
5d5fc49334
commit
eef7d8c238
26
.github/workflows/ci.yaml
vendored
Normal file
26
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: ci
|
||||
on: [pull_request, push, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: 拉取仓库
|
||||
uses: actions/checkout@v4
|
||||
- name: 设置node环境
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
- name: 设置node镜像
|
||||
run: npm config set registry https://registry.npmmirror.com
|
||||
- name: 设置bun环境
|
||||
run: npm install -g bun
|
||||
- name: 获取依赖
|
||||
run: bun install
|
||||
- name: 编译
|
||||
run: bun run build-only
|
||||
- name: 上传编译后产物
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: main
|
||||
path: dist/
|
Loading…
x
Reference in New Issue
Block a user