Skip to content

ci: update publishing flows - #1866

Merged
jannik-stacks merged 2 commits into
mainfrom
worktree-update-publish
May 26, 2026
Merged

ci: update publishing flows#1866
jannik-stacks merged 2 commits into
mainfrom
worktree-update-publish

Conversation

@jannik-stacks

Copy link
Copy Markdown
Collaborator
  • update release beta/pr flow

overview

  • release 'latest' on version commit to main branch
  • release 'pr' dist-tagged packages, by triggering workflow dispatch action manually (with pr number input)
  • release 'next'/'beta'/etc dist-tagged packages, by triggering workflow dispatch action manually (with branch name input

edgar-stacks
edgar-stacks previously approved these changes May 26, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the repository’s GitHub Actions release process by separating “version PR creation” from “npm publishing”, and by making non-latest publishes (PR canaries and dist-tag snapshots) explicitly manual via workflow_dispatch.

Changes:

  • Added a dedicated version.yml workflow to open/update the Changesets “chore: version packages” PR (no publishing).
  • Reworked publish.yml to:
    • publish latest only on merges of the version PR (commit subject gate) or on an explicit “empty target” dispatch from main
    • publish @pr canaries and @<tag> snapshots only via workflow_dispatch using a unified target input plus a validation/classification job.
  • Generalized snapshot-version.mjs to support arbitrary lowercase dist-tags beyond just beta/pr.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/version.yml New workflow to open/update the Changesets versioning PR without publishing.
.github/workflows/publish.yml Restructures publish triggers and adds dispatch validation to support latest, snapshot, and PR canary publishing flows.
.github/scripts/snapshot-version.mjs Extends snapshot version rewriting to support arbitrary lowercase dist-tags and updated CLI usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish.yml
Comment thread .github/scripts/snapshot-version.mjs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jannik-stacks
jannik-stacks merged commit 494487c into main May 26, 2026
7 checks passed
@jannik-stacks
jannik-stacks deleted the worktree-update-publish branch May 26, 2026 15:42
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.

4 participants