You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Consolidate the `check-upgrade-dependencies` Claude prompt: the three
overlapping sections (old Instructions, Final check, "Help me fix")
all described the same test/build/snap-test checks and sometimes
contradicted each other. Replace with a single structured prompt
(Background → Fixups → Final validation → Commit rule) where each
requirement appears exactly once.
- `updatePnpmWorkspace` now uses a single-pass `String.replace` with a
callback, so the current version is captured during the substitution
instead of via a separate `match` call. Drops the redundant
`replacement` field from each entry and removes the "matched once but
replace didn't match" edge case.
- `getLatestTag` fetches only the newest tag (`?per_page=1`) instead of
the default 30.
- `updateCorePackage` now early-returns when `@vitejs/devtools` is
absent, skipping the no-op JSON rewrite.
Copy file name to clipboardExpand all lines: .github/workflows/upgrade-deps.yml
+42-63Lines changed: 42 additions & 63 deletions
Original file line number
Diff line number
Diff line change
@@ -72,70 +72,49 @@ jobs:
72
72
github_token: ${{ secrets.GITHUB_TOKEN }}
73
73
show_full_output: 'true'
74
74
prompt: |
75
-
Check if the build-upstream steps failed and fix them.
75
+
Your goal: after the daily upstream-dependency upgrade, bring the project back
76
+
to a fully green state. The upgrade script has already bumped every dep to the
77
+
latest version and the `build-upstream` action has attempted a build — your job
78
+
is to diagnose and fix every error that surfaced, then prove the fix is complete
79
+
by running a final validation pass.
80
+
76
81
### Background
77
-
- The build-upstream steps are at ./.github/actions/build-upstream/action.yml
78
-
- The deps upgrade script is at ./.github/scripts/upgrade-deps.mjs
79
-
80
-
### Instructions
81
-
- We are using `pnpm` as the package manager
82
-
- We are aiming to upgrade all dependencies to the latest versions in this workflow, so don't downgrade any dependencies.
83
-
- Compare tsdown CLI options with `vp pack` and sync any new or removed options. Follow the instructions in `.claude/skills/sync-tsdown-cli/SKILL.md`.
84
-
- Check `.claude/agents/cargo-workspace-merger.md` if rolldown hash is changed.
85
-
- Run the steps in `build-upstream` action.yml after your fixing. If no errors are found, you can safe to exit.
86
-
- Install global CLI after the build-upstream steps are successful, by running the following commands:
87
-
- `pnpm bootstrap-cli:ci`
88
-
- `echo "$HOME/.vite-plus/bin" >> $GITHUB_PATH`
89
-
- Run `pnpm run lint` to check if there are any issues after the build, if has, deep investigate it and fix it. You need to run `just build` before you can run `pnpm run lint`.
90
-
- If deps in our `Cargo.toml` need to be upgraded, you can refer to the `./.claude/agents/cargo-workspace-merger.md`
91
-
- If `Cargo.toml` has been modified, you need to run `cargo shear` to ensure there is nothing wrong with our dependencies.
92
-
- Run `cargo check --all-targets --all-features` to ensure everything works fine if any Rust related codes are modified.
93
-
- Run the following commands to ensure everything works fine:
94
-
vp -h
95
-
vp run -h
96
-
vp lint -h
97
-
vp test -h
98
-
vp build -h
99
-
vp fmt -h
100
-
vp pack -h
101
-
102
-
### Final check (BOTH must succeed before you exit)
103
-
This step is only complete when BOTH of the following pass. If either one fails,
104
-
diagnose and fix the root cause, then re-run both until they both succeed.
105
-
1. `just build` — must exit 0. If it fails, investigate the error, fix the
106
-
underlying issue, and run it again.
107
-
2. `pnpm bootstrap-cli:ci && pnpm test` — must exit 0. If it fails, investigate
108
-
the error, fix the underlying issue, and run it again. Note that the snap
109
-
tests inside `pnpm test` always exit 0 even when their outputs differ, so
110
-
after the command passes you MUST also inspect the `git diff` on
111
-
`packages/cli/snap-tests/**/snap.txt` and `packages/cli/snap-tests-global/**/snap.txt`
112
-
and decide whether each change is an acceptable consequence of the upstream
113
-
upgrade (e.g. a version string bump) or a real regression that needs fixing.
114
-
115
-
Only exit after you have confirmed both of the above succeed. Do not consider
116
-
the task complete if either `just build` fails, `pnpm bootstrap-cli:ci && pnpm test`
117
-
fails, or the snap-test diff shows an apparent regression.
118
-
119
-
Help me fix every error that surfaces during this step. That includes, at
120
-
minimum:
121
-
- Failures in the `build-upstream` action (non-zero exit from any step inside
122
-
`.github/actions/build-upstream/action.yml`).
123
-
- `pnpm run lint` errors.
124
-
- `just build` failures.
125
-
- `pnpm bootstrap-cli:ci && pnpm test` failures.
126
-
- Snap-test regressions: `pnpm test` always exits 0 even when snapshot outputs
127
-
differ, so you MUST inspect the `git diff` on
128
-
`packages/cli/snap-tests/**/snap.txt` and
129
-
`packages/cli/snap-tests-global/**/snap.txt` and fix any change that looks
130
-
like a real regression (e.g., unexpected stack traces, missing output,
131
-
diverging CLI behavior). Cosmetic drift caused by the upstream upgrade
132
-
itself (e.g., a bumped version string in help output) is acceptable —
133
-
leave those in place.
134
-
- `cargo check --all-targets --all-features` errors if any Rust code was
135
-
modified, and stale `cargo shear` findings if `Cargo.toml` changed.
136
-
137
-
Do NOT commit any changes — a later workflow step handles the commit for all
0 commit comments