Skip to content

ci: publish releases to GitHub Packages as well as npm - #2

Merged
ppettitau merged 1 commit into
mainfrom
ppettitau-publish-github-packages
Nov 26, 2026
Merged

ppettitau merged 1 commit into
mainfrom
ppettitau-publish-github-packages

Conversation

@ppettitau

Copy link
Copy Markdown
Collaborator

Releases from main now go to GitHub Packages as well as npm, matching the other @eresearchqut packages. Projects whose .npmrc points @eresearchqut at GitHub Packages, such as DMP, can then depend on a plain ^1.0.0 and let yarn install write the lockfile.

A new publish-gpr job runs after publish-node when semantic-release has tagged a release. It checks out that tag, builds and publishes to npm.pkg.github.com, the same way publish-prerelease does. It lives in build.yml rather than a separate workflow triggered by releases (as in jest-testcontainers), because releases created with GITHUB_TOKEN do not trigger other workflows.

This is a ci: change, so merging it does not cut a release. The existing 1.0.0 will be published to GitHub Packages manually.

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.

🟢 Approval recommended

There are no active review issues for the change adding stable-release publishing to GitHub Packages.

No open issues 🎉

What changed in this PR

This PR extends stable release publishing to GitHub Packages alongside npm, allowing consumers configured to use GitHub Packages for @eresearchqut to install released versions.

Changes:

  • Exposes the release tag from publish-node and adds a dependent job to build and publish that tag to GitHub Packages.
  • Keeps publishing in the existing workflow because releases created with GITHUB_TOKEN do not trigger other workflows.
  • Updates the README to document both release registries.
File Description
README.md Documents stable release availability on npm and GitHub Packages.
.github/​workflows/​build.yml Adds release-tag output and conditional GitHub Packages publishing.

Review effort: Balanced

@ppettitau
ppettitau merged commit 3fd7dec into main Nov 26, 2026
7 checks passed
@ppettitau
ppettitau deleted the ppettitau-publish-github-packages branch November 26, 2026 00:07
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.

3 participants