From 4e11d8255c22321926f391a95c91290c25babf93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 9 Oct 2024 18:01:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20CI=20=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E7=AE=80=E5=8C=96=20Node.js=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E8=AE=BE=E7=BD=AE=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 24 ++++++------------------ src/pages/中文-页面.page.vue | 1 - 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c6f43b..328e411 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: diff --git a/src/pages/中文-页面.page.vue b/src/pages/中文-页面.page.vue index 16181ec..5faab66 100644 --- a/src/pages/中文-页面.page.vue +++ b/src/pages/中文-页面.page.vue @@ -1,7 +1,6 @@