Repository navigation
fix: publish the GitHub Packages mirror with its own npmrc - #329
Merged
Merged
Conversation
kyle-pierce
approved these changes
Oct 27, 2026
kyle-pierce
left a comment
Contributor
There was a problem hiding this comment.
Looking at the code history, this is the first time we ran this step, right? It's not that it was working and stopped?
Contributor
Author
Yes, first run. The job only runs on a release, and there was none between #326 and today, so it was always skipped. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The mirror to GitHub Packages has never published. It failed on the 0.23.1 release with
No token found and can't prompt for login when running with --non-interactive, and before that it was always skipped, because it runs after the npm publish in the same job and that step had been failing.The npm publish ends with
[4/4] Revoking token, and yarn looks the credential up by the default registry rather than by--registry. The step appended its token to the npmrc and passed--registry, so yarn never used it. It now writes the npmrc instead of appending to it, with GitHub Packages as the default registry, and drops the flag.This matters because
frontapp/frontinstalls@frontapp/ui-kitfromnpm.pkg.github.com, so a version that only reaches npm never reaches the app.Links
Jira
Failed run
Risks and recovery
CI only, nothing in the published package changes. The worst case is the same failure as today, with npm already published and the mirror still missing. Reverting the commit is enough.
Checklist:
Testing
A workflow step cannot be tested outside Actions, so what was checked locally is the part that is not the credential:
registry=https://npm.pkg.github.comand the matching_authTokenline, andnpm config get registryresolves to GitHub Packages.runandenvare intact.What is not proven until this merges: that
yarn publishauthenticates against GitHub Packages withGITHUB_TOKEN. Since 0.23.1 is already on npm, the npm step will fail on a re-run of that release, so the real proof is the next release publishing to both registries.