update-version
by remotion-dev
Update `AvailableFrom` in a PR to the next Remotion patch version (`main` + `0.0.1`).
npx skills add https://github.com/remotion-dev/remotion --skill update-versionUse this when a PR contains docs changes with <AvailableFrom v="..."> and the value should reflect the next release version.
- Get the canonical version from
main:
git fetch origin main --quiet
git --no-pager show origin/main:packages/core/src/version.ts
Read VERSION from that file (for example: 4.0.468), then compute the next patch version by incrementing the patch number by 1 (4.0.469).
- Find
AvailableFromentries changed in the current PR:
git --no-pager diff origin/main...HEAD -- packages/docs | rg 'AvailableFrom v="'
-
Update only
AvailableFromvalues touched by this PR so they match the computed next patch version from step 1. -
Do not change unrelated
AvailableFromvalues outside the PR diff. -
Commit and push the update.