Skip to content

Track the Lightning CSS version in the gem version - #8

Merged
marcoroth merged 1 commit into
mainfrom
version-tracks-lightningcss
Sep 12, 2026
Merged

Track the Lightning CSS version in the gem version#8
marcoroth merged 1 commit into
mainfrom
version-tracks-lightningcss

Conversation

@marcoroth

@marcoroth marcoroth commented Sep 12, 2026

Copy link
Copy Markdown
Owner

This pull request makes the gem version mirror the Lightning CSS release it packages, so gem v1.33.0 bundles Lightning CSS v1.33.0, and the upstream workflow bumps that version along with the dependency.

Lightning CSS numbers its crate differently from its releases. Every version on crates.io is 1.0.0-alpha.N, with no stable release ever published, while the same build is tagged v1.33.0 and ships on npm as 1.33.0.

Following the crate would make every release a RubyGems prerelease, which bundle add lightningcss skips, so the gem follows the release instead:

LightningCSS::VERSION             #=> "1.33.0"
LightningCSS.lightningcss_version #=> "1.0.0-alpha.72"

The workflow reads the latest release from GitHub, then reads Cargo.toml at that tag to learn which crate the release carries:

v1.33.0  ->  1.0.0-alpha.72
v1.32.0  ->  1.0.0-alpha.71
v1.30.2  ->  1.0.0-alpha.68

@marcoroth
marcoroth merged commit ce6c4dc into main Sep 12, 2026
11 checks passed
@marcoroth
marcoroth deleted the version-tracks-lightningcss branch September 12, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant