Skip to content

ci: add beta dist-tag workflow#3327

Open
dreamwasp wants to merge 6 commits intomainfrom
cass-gmt-1607
Open

ci: add beta dist-tag workflow#3327
dreamwasp wants to merge 6 commits intomainfrom
cass-gmt-1607

Conversation

@dreamwasp
Copy link
Copy Markdown
Contributor

@dreamwasp dreamwasp commented Apr 15, 2026

Overview

Add a GHA workflow to publish beta packages when the beta label is added. This should also skip the alpha publish on commit. I also renamed a couple of tasks from "alpha" to "pre-release".

I have a couple of open questions about using the beta dist-tag like if we want to block multiple PRs from using the label or how we should "gate" it but this is the MVP of "publish under beta dist-tag"

PR Checklist

  • Related to designs:
  • Related to JIRA ticket: [gmt-1607]
  • Version plan added/updated (or not needed)
  • I have run this code to verify it works
  • This PR includes unit tests for the code change
  • This PR includes testing instructions tests for the code change
  • The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Branch off of this branch and try adding the beta tag to your test PR
you can also try `yarn add @codecademy/gamut@beta in another repo if you want to test that the dist-tags works

PR Links and Envs

n/a

@dreamwasp dreamwasp added the beta label Apr 15, 2026
@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 15, 2026

View your CI Pipeline Execution ↗ for commit 913d422


☁️ Nx Cloud last updated this comment at 2026-04-16 15:46:15 UTC

@codecademydev
Copy link
Copy Markdown
Collaborator

📬 Published Beta Packages (install with @beta):

Package Version npm Diff
@codecademy/gamut 68.2.3-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-icons 9.57.3-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-illustrations 0.58.10-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-kit 0.6.593-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-patterns 0.10.29-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-styles 17.13.2-beta.pr3327.24465403529.0 npm diff
@codecademy/gamut-tests 5.3.4-beta.pr3327.24465403529.0 npm diff
@codecademy/variance 0.26.2-beta.pr3327.24465403529.0 npm diff
eslint-plugin-gamut 2.4.4-beta.pr3327.24465403529.0 npm diff

Comment thread README.md

**Alpha (default):** On each push to the PR branch, CI publishes alpha releases (per-commit prerelease versions on npm). This does **not** run while the PR has the **`beta`** label.

**Beta:** Add the **`beta`** label to the PR (create the label in the repo if it does not exist). That triggers a one-time publish to npm under the **`beta`** dist-tag (install with e.g. `yarn add @codecademy/gamut@beta`). Pushing new commits does **not** republish beta automatically; remove the **`beta`** label and add it again after your changes to trigger another publish.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we can change this - i'd like to add some gating or something around beta publishes so that the @beta tags stays useful

@dreamwasp dreamwasp marked this pull request as ready for review April 15, 2026 16:37
@dreamwasp dreamwasp requested a review from a team as a code owner April 15, 2026 16:37
Comment thread .github/actions/prerelease-publish/action.yml
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@sh0ji sh0ji left a comment

Choose a reason for hiding this comment

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

I think I see now where we were misunderstanding each other. I've been under the impression that you could just run something like this to get the React 19 stuff out under a prerelease channel (beta is fine).

yarn nx release prerelease --preid beta
yarn nx release publish --tag beta

That would publish it as 68.2.3-beta.0 I think, allowing @BandanaKM to install it with yarn add @codecademy/gamut@beta.

I'm all for updating our workflows and CI too, but it never crossed my mind as a dependency of unblocking Bana. Is there some reason we can't do that today without any real code changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants