fix: 优化 CI 流程,简化 Node.js 环境设置,修复按钮点击事件绑定
Some checks failed
CI / build-and-deploy (push) Failing after 14s
Some checks failed
CI / build-and-deploy (push) Failing after 14s
This commit is contained in:
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
@ -14,29 +14,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 拉取代码
|
||||
uses: actions/checkout@v4
|
||||
- name: 修改 .npmrc
|
||||
run: |
|
||||
sed -i '/use-node-version/d' .npmrc;
|
||||
sed -i '/node-mirror/d' .npmrc;
|
||||
- name: 安装 pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
run_install: false
|
||||
- name: 安装 Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'pnpm'
|
||||
- name: 安装依赖
|
||||
run: pnpm install --frozen-lockfile
|
||||
- uses: yanhao98/composite-actions/setup-node-environment@main
|
||||
- name: 静态代码分析
|
||||
run: pnpm lint
|
||||
- name: Vue 类型检查
|
||||
run: npx vue-tsc --build --force
|
||||
|
||||
- name: 修改 .npmrc
|
||||
run: |
|
||||
sed -i '/use-node-version/d' .npmrc;
|
||||
sed -i '/node-mirror/d' .npmrc;
|
||||
|
||||
# - name: Build
|
||||
# run: pnpm build
|
||||
# env:
|
||||
|
Reference in New Issue
Block a user