From 4f7d469420401ba893221aa321f204e079f92959 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Mon, 11 May 2026 16:10:48 +0800 Subject: [PATCH 1/3] docs: improve "before" ci usage to actual use case Signed-off-by: Mister-Hope --- docs/guide/ci.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/guide/ci.md b/docs/guide/ci.md index 22972163e5..4d31f142e7 100644 --- a/docs/guide/ci.md +++ b/docs/guide/ci.md @@ -30,23 +30,17 @@ If you are migrating an existing GitHub Actions workflow, you can often replace #### Before: ```yaml [.github/workflows/ci.yml] -- uses: actions/setup-node@v4 - with: - node-version: '24' - - uses: pnpm/action-setup@v4 with: version: 10 -- name: Get pnpm store path - run: pnpm store path - -- uses: actions/cache@v4 +- uses: actions/setup-node@v6 with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} + node-version: '24' + cache: pnpm -- run: pnpm install && pnpm dev:setup +- run: pnpm ci && pnpm dev:setup +- run: pnpm check - run: pnpm test ``` From 72005dc8c271137acbead5bc79da4f8826ed3f83 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Mon, 11 May 2026 16:14:38 +0800 Subject: [PATCH 2/3] Update ci.md Signed-off-by: Mister-Hope --- docs/guide/ci.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/ci.md b/docs/guide/ci.md index 4d31f142e7..68835bb97e 100644 --- a/docs/guide/ci.md +++ b/docs/guide/ci.md @@ -13,7 +13,7 @@ That means you usually do not need separate `setup-node`, package-manager setup, ```yaml [.github/workflows/ci.yml] - uses: voidzero-dev/setup-vp@v1 with: - node-version: '22' + node-version: '24' cache: true - run: vp install - run: vp check @@ -32,7 +32,7 @@ If you are migrating an existing GitHub Actions workflow, you can often replace ```yaml [.github/workflows/ci.yml] - uses: pnpm/action-setup@v4 with: - version: 10 + version: 11 - uses: actions/setup-node@v6 with: From d19c98d2c34851bbe6c6c40ec3182854ac2f8287 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Mon, 11 May 2026 16:15:27 +0800 Subject: [PATCH 3/3] Update pnpm/action-setup version in CI guide Signed-off-by: Mister-Hope --- docs/guide/ci.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/ci.md b/docs/guide/ci.md index 68835bb97e..ca958a3451 100644 --- a/docs/guide/ci.md +++ b/docs/guide/ci.md @@ -30,7 +30,7 @@ If you are migrating an existing GitHub Actions workflow, you can often replace #### Before: ```yaml [.github/workflows/ci.yml] -- uses: pnpm/action-setup@v4 +- uses: pnpm/action-setup@v6 with: version: 11