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 @@