From b5ecadc5930ded26ebee05ee7e0dd86b68a8198d Mon Sep 17 00:00:00 2001 From: RetricSu Date: Fri, 16 Jan 2026 12:10:38 +0800 Subject: [PATCH 1/3] fix(ci): don't checkout submodule (#362) --- .github/workflows/test.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f16215a..4a10b11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,8 +20,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - submodules: recursive - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -33,18 +31,15 @@ jobs: with: version: 10 - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - name: Setup pnpm cache + - name: Cache node_modules uses: actions/cache@v4 with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + path: | + node_modules + ~/.pnpm-store + key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-pnpm-store- + ${{ runner.os }}-pnpm- - name: Install dependencies run: pnpm install --frozen-lockfile From 704bd4ef52fd23147a96942138aa4954540008cb Mon Sep 17 00:00:00 2001 From: RetricSu Date: Fri, 16 Jan 2026 12:11:24 +0800 Subject: [PATCH 2/3] fix(build): canary release with correct --version (#361) --- .github/workflows/canary-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/canary-publish.yml b/.github/workflows/canary-publish.yml index c6bdd12..b82bed2 100644 --- a/.github/workflows/canary-publish.yml +++ b/.github/workflows/canary-publish.yml @@ -24,9 +24,6 @@ jobs: - name: Install dependencies run: npm install -g pnpm && pnpm i - - name: Build - run: pnpm build - - name: Set up Git identity run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" @@ -37,6 +34,9 @@ jobs: SHORT_COMMIT_ID=$(git log -1 --pretty=format:%h) npm version prerelease --preid="canary-$SHORT_COMMIT_ID" + - name: Build + run: pnpm build + - name: Canary release to npm run: | npm publish --access public --tag canary From a3c705720a8a9605b61fd90c07f3b1bcc1450dfd Mon Sep 17 00:00:00 2001 From: RetricSu Date: Fri, 16 Jan 2026 14:11:35 +0800 Subject: [PATCH 3/3] fix(ci): cache for pnpm install in test (#363) --- .github/workflows/test.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a10b11..3787bce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,25 +21,16 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - name: Setup pnpm uses: pnpm/action-setup@v4 with: version: 10 - - name: Cache node_modules - uses: actions/cache@v4 + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - path: | - node_modules - ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- + node-version: ${{ matrix.node-version }} + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile