From 414259cec66c24199b3668da4d05954b215d00c7 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Thu, 23 Apr 2026 14:34:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=20CI=20=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E4=BB=8E=20Node.js=20=E8=BF=81=E7=A7=BB=E5=88=B0=20Bu?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint-format.yml | 32 ++++++++++--------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 511196c..ac13300 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -15,24 +15,18 @@ jobs: uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v4 + uses: oven-sh/setup-bun@v2 with: - node-version: "24" - cache: "npm" - - - name: Enable corepack and install npm - run: | - corepack enable - corepack prepare npm@latest --activate + bun-version: latest - name: Install dependencies - run: npm install --frozen-lockfile + run: bun install - name: Run ESLint - run: npm lint + run: bun run lint - name: Run Prettier check - run: npm format:check + run: bun run format:check format: name: Auto-format (eslint --fix) @@ -46,24 +40,18 @@ jobs: persist-credentials: true - name: Setup Node - uses: actions/setup-node@v4 + uses: oven-sh/setup-bun@v2 with: - node-version: "24" - cache: "npm" - - - name: Enable corepack and install npm - run: | - corepack enable - corepack prepare npm@latest --activate + bun-version: latest - name: Install dependencies - run: npm install --frozen-lockfile + run: bun install - name: Run Prettier --write - run: npm format + run: bun run format - name: Run ESLint --fix - run: npm lint:fix + run: bun run lint:fix - name: Commit & push fixes run: |