chore(ci): rewrite upgrade deps script in typescript#1514
Conversation
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
How to use the Graphite Merge QueueAdd the label auto-merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR updates the automated “upgrade upstream dependencies” GitHub Actions workflow to use a TypeScript rewrite of the upgrade script, improving type-safety and runtime validation while keeping the script’s responsibilities (bumping upstream hashes and key tool versions, and writing metadata for PR generation) the same.
Changes:
- Switch the workflow to run the upgraded dependency script from
.mjsto.ts. - Rewrite the upgrade script with TypeScript types, stronger response-shape checks, and shared JSON-reading utilities.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/upgrade-deps.yml | Updates the workflow step (and embedded docs) to call the .ts upgrade script. |
| .github/scripts/upgrade-deps.ts | TypeScript refactor: adds explicit types, tighter API response validation, and small safety checks when editing JSON/YAML files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cbb4e85 to
a39b5fd
Compare
a39b5fd to
edd1dd6
Compare

since node can nativly run typescript, lets write the script in typescript, and get all the typechecking benifits that come alongside that.