Skip to content

Migrate package publishing to GitHub Packages [WPB-26998] - #107

Draft
screendriver wants to merge 1 commit into
masterfrom
github-packages
Draft

screendriver wants to merge 1 commit into
masterfrom
github-packages

Conversation

@screendriver

Copy link
Copy Markdown
Member

This pull request migrates @wireapp/protocol-messaging from npmjs.com to the GitHub Packages npm registry.

The existing Yarn versioning lifecycle remains in place. Publication now uses the repository’s GITHUB_TOKEN with packages: write, and the package manifest explicitly targets https://npm.pkg.github.com.

The npmjs.com Trusted Publisher and OIDC configuration are no longer required.

Preserve the current package version

wireapp/wire-webapp currently depends on the exact version:

"@wireapp/protocol-messaging": "1.56.0"

The existing release workflow creates the next minor version through yarn version --minor. Simply changing the publication registry would therefore publish 1.57.0 while leaving 1.56.0 available only from npmjs.com.

Before creating the next minor release, the workflow now checks whether the current package version exists in GitHub Packages. It publishes that version when missing and skips the step when it is already available.

This keeps the migration idempotent and also allows a later workflow run to recover when a version was committed but its publication failed.

Relationship to wire-webapp

This pull request is a prerequisite for wireapp/wire-webapp#21813.

After the first publication, the GitHub package settings must grant wireapp/wire-webapp read access where required. Its publishing workflow verifies that the exact required @wireapp/protocol-messaging version is available before publishing @wireapp/api-client.

Publish @wireapp/protocol-messaging through the GitHub Packages npm registry instead of npmjs.com.

Use the repository GITHUB_TOKEN for authentication and configure the publication registry explicitly in the package manifest.

Before creating the next minor release, publish the current package version when it is missing from GitHub Packages. This ensures that @wireapp/protocol-messaging@1.56.0 remains available to existing consumers such as wire-webapp.
@sonarqubecloud

Copy link
Copy Markdown

@screendriver
screendriver marked this pull request as draft July 13, 2026 07:59
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