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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 拉取代码
|
- uses: yanhao98/composite-actions/setup-node-environment@main
|
||||||
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
|
|
||||||
- name: 静态代码分析
|
- name: 静态代码分析
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
- name: Vue 类型检查
|
- name: Vue 类型检查
|
||||||
run: npx vue-tsc --build --force
|
run: npx vue-tsc --build --force
|
||||||
|
|
||||||
|
- name: 修改 .npmrc
|
||||||
|
run: |
|
||||||
|
sed -i '/use-node-version/d' .npmrc;
|
||||||
|
sed -i '/node-mirror/d' .npmrc;
|
||||||
|
|
||||||
# - name: Build
|
# - name: Build
|
||||||
# run: pnpm build
|
# run: pnpm build
|
||||||
# env:
|
# env:
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<button @click="函数($event)">Back</button>
|
<button @click="函数($event)">Back</button>
|
||||||
<button @click="函数;">Back</button>
|
|
||||||
<h1>中文-页面.page.vue</h1>
|
<h1>中文-页面.page.vue</h1>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Reference in New Issue
Block a user