From d9d2a31c022ad4efae3ab397551daf721836886f Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Wed, 21 Jan 2026 18:35:24 +0800 Subject: [PATCH] ci: simplify workflows --- .github/workflows/ci.yml | 18 ++---------------- .github/workflows/gh-pages.yml | 16 ++-------------- 2 files changed, 4 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 652c611..8ec1872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,28 +22,14 @@ jobs: unit-test-bun: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - persist-credentials: false - - - name: Install pnpm - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - - - name: Setup node - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 - with: - node-version: lts/* - cache: pnpm + - name: Setup JS + uses: sxzz/workflows/setup-js@v1 - name: Setup Bun uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: latest - - name: Install dependencies - run: pnpm install - - name: Build run: pnpm run build diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 29ce513..0b0854f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -13,20 +13,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - persist-credentials: false - - - name: Install pnpm - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - - - name: Set node - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 - with: - node-version: lts/* - cache: pnpm - - - run: pnpm i + - name: Setup JS + uses: sxzz/workflows/setup-js@v1 - name: Build unplugin run: pnpm run build