Skip to content

ci: release with release-please instead of Changesets - #28

Merged
Nsttt merged 2 commits into
mainfrom
ci/release-please
Nov 5, 2026
Merged

Nsttt merged 2 commits into
mainfrom
ci/release-please

Conversation

@Nsttt

@Nsttt Nsttt commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Moves releases from Changesets to release-please, set up like module-federation/tanstack and module-federation/electron, and adds the same CI.

Changes

  • release-please: release-please-config.json and .release-please-manifest.json track the repo root, starting at 0.0.0, and ignore commits that only touch .github, docs, example or scripts. A change to either the runtime plugin or the Rust crate releases both artifacts. Every push to main opens or updates a chore: release x.y.z PR. Tags have no v.
  • Versions: the release PR bumps packages/tauri/package.json, packages/tauri-plugin/Cargo.toml and the crate's Cargo.lock entry through extra-files, so npm and crates.io always ship the same version. The changelog is packages/tauri/CHANGELOG.md.
  • Workflows
    • release-please.yml: copied from tanstack, uses the RELEASE_APP_ID / RELEASE_APP_PRIVATE_KEY GitHub App token so its releases trigger Release.
    • release.yml: rewritten in tanstack's style, still publishes to crates.io. Runs on published releases, main-only, checks the tag and Cargo version, -next.<run id> previews on dispatch, refuses conflicting republishes. Now installs Tauri's Linux dependencies, which pnpm build needs for the example hosts.
    • ci.yml: version sync check, cargo fmt --check, pnpm build, cargo test, npm pack --dry-run.
    • pkg-pr-new.yml: preview packages for every PR and push to main.
    • pr.yml: validates Conventional Commit PR titles, which now decide the release.
  • Removed: .changeset/ and @changesets/cli.
  • Docs: docs/RELEASING.md rewritten for this flow, including setup and the npm first-publish bootstrap.

Verification

  • actionlint passes on all workflows; the config passes release-please's JSON schema.
  • Simulated release PRs with release-please 17.11.2:
    • fix: touching only packages/tauri-plugin/src → chore: release 0.0.1
    • feat: touching packages/tauri and docs → chore: release 0.1.0
    • feat: touching only example/, or fix: touching only docs/ and scripts/ → no release PR
    • Each release PR changes exactly the version line in package.json (tabs kept), Cargo.toml and Cargo.lock, and pnpm release:sync:check passes on the result.
  • pnpm install --frozen-lockfile, pnpm build:package and pnpm pack:tauri pass locally. CI on this PR is the first Linux run of the full build.

Before the first release

  • Create a Publish environment.
  • Secrets: RELEASE_APP_ID, RELEASE_APP_PRIVATE_KEY, CARGO_REGISTRY_TOKEN.
  • Bootstrap npm trusted publishing for @module-federation/tauri (see docs/RELEASING.md).
  • The pkg.pr.new GitHub App must be installed for this repo.

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/module-federation/tauri-plugin-module-federation/@module-federation/tauri@28

commit: 07aea37

@Nsttt Nsttt self-assigned this Nov 4, 2026
Nsttt added 2 commits November 5, 2026 12:07
Release PRs bump the npm package and the Cargo crate together. Adds CI,
PR title validation and pkg.pr.new previews, matching the tanstack and
electron repos.
release-please only counted commits under packages/tauri, so a fix that
only touched packages/tauri-plugin would not have released. Track the repo
root instead, excluding .github, docs, example and scripts, and bump
packages/tauri/package.json through extra-files.
@Nsttt
Nsttt force-pushed the ci/release-please branch from a7a79ea to 07aea37 Compare November 5, 2026 11:07
@Nsttt
Nsttt merged commit 03ca020 into main Nov 5, 2026
3 of 4 checks passed
@Nsttt
Nsttt deleted the ci/release-please branch November 5, 2026 11:08
@github-actions github-actions Bot mentioned this pull request Nov 5, 2026
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