update-version

$npx mdskill add remotion-dev/remotion/update-version

Updates `AvailableFrom` tags in a PR to the next Remotion patch version.

  • Solves the task of versioning documentation changes for upcoming releases.
  • Uses Git commands and regex to identify and modify relevant files.
  • Calculates the next patch version by incrementing the current version from `main`.
  • Commits and pushes the updated `AvailableFrom` values directly.

SKILL.md

.github/skills/update-versionView on GitHub ↗
---
name: update-version
description: Update `AvailableFrom` in a PR to the next Remotion patch version (`main` + `0.0.1`).
---

Use this when a PR contains docs changes with `<AvailableFrom v="...">` and the value should reflect the next release version.

1. Get the canonical version from `main`:

```bash
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`).

2. Find `AvailableFrom` entries changed in the current PR:

```bash
git --no-pager diff origin/main...HEAD -- packages/docs | rg 'AvailableFrom v="'
```

3. Update only `AvailableFrom` values touched by this PR so they match the computed next patch version from step 1.

4. Do not change unrelated `AvailableFrom` values outside the PR diff.

5. Commit and push the update.

More from remotion-dev/remotion

SkillDescription
add-cli-optionAdd a new Remotion CLI or config option by creating an AnyRemotionOption, registering CLI parsing, wiring config setters, and updating documentation. Use when adding or converting command-line flags or Remotion options.
add-effectAdd a new effect to @remotion/effects, including implementation, package exports, docs, demos, preview images, Remotion skill updates, tests, formatting, and builds.
add-expertAdd a new expert to the Remotion experts page
add-new-packageAdd a new package to the Remotion monorepo, including package scaffolding, monorepo registration, documentation, build scripts, tests, and release checklist updates. Use when creating a new @remotion package.
add-sfxAdd a new sound effect to @remotion/sfx
add-webcodecs-bugAdd a browser WebCodecs bug to the Remotion Mediabunny WebCodecs bugs docs page. Use when given a Chromium, WebKit, or Firefox issue URL that should be tracked in packages/docs/docs/mediabunny/webcodecs-bugs.mdx, especially when needing to look up the issue title, filing date, reporter, and resolution state before editing the MDX table.
docs-demoAdd an interactive demo to the Remotion documentation. Use when creating a new <Demo> component for docs pages.
fix-dependabotFix a Dependabot PR by updating all monorepo instances of the dependency, running bun install, and pushing
flakeTrack Remotion CI flakes in issue #8375, increment repeated signatures, discover failed PR checks when no PR is given, and rerun flaky GitHub Actions jobs.
issueCreate or update GitHub issues with correct Remotion naming and safe multiline Markdown handling