Skip to content

chore: add workflow for versioning/publishing blockly#9627

Open
maribethb wants to merge 2 commits intoRaspberryPiFoundation:mainfrom
maribethb:publish-workflow
Open

chore: add workflow for versioning/publishing blockly#9627
maribethb wants to merge 2 commits intoRaspberryPiFoundation:mainfrom
maribethb:publish-workflow

Conversation

@maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes #9550

Proposed Changes

Adds a workflow for versioning and publishing blockly:

  • runs the same ci as happens on a PR: build/test/lint etc
  • includes dry-run option which only prints the version number
  • automatically determines the version number (using the same underlying package that lerna version uses when it does this for us in samples) based on conventional commits
  • publishes to npm (need to set up trusted publishing once this workflow exists)
  • creates a github release with automated release notes, tag, and the tarball

Reason for Changes

Improved ease of publishing

Test Coverage

I haven't tested this. Will first test using the dry run option to make the version number works correctly. Otherwise, the steps here match what we do when publishing a manual release.

Documentation

Will update internal documentation on publishing.

Additional Information

Next steps:

  • add option to publish a beta version and from other branches
  • add a call to the update github pages workflow after a successful publish

@maribethb maribethb requested a review from a team as a code owner March 10, 2026 21:33
@maribethb maribethb requested a review from gonfunko March 10, 2026 21:33
@github-actions github-actions bot added the PR: chore General chores (dependencies, typos, etc) label Mar 10, 2026
@maribethb
Copy link
Contributor Author

oops forgot to add the dry run commit previously, PTAL

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

Labels

PR: chore General chores (dependencies, typos, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up trusted publishing for blockly

2 participants