fix(ci): append trailing slash to registry url in npmrc#28038
Conversation
|
📊 PR Size: size/XS
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses an authentication issue during npm publish by ensuring the @google registry URL configuration includes a trailing slash. This alignment resolves mismatches between the registry endpoint and the credential mapping, preventing ENEEDAUTH errors in the nightly release workflow. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Summary
This PR appends a trailing slash to the
@googleregistry URL in both the root.npmrcand.github/actions/setup-npmrc/action.yml. This fixes the nightly release credential mapping issue where npm was unable to match credentials with the registry.Details
Without the trailing slash (
/),npm publishfails withENEEDAUTHbecause the registry endpointhttps://wombat-dressing-room.appspot.com/(which npm resolves with a trailing slash) does not match the exact key//wombat-dressing-room.appspot.com:_authTokenor similar credential mapping without the slash. Aligning both files to include the trailing slash resolves this authentication mismatch.Related Issues
Fixes #28029 Fixes #28028 Fixes #28026 Fixes #27991 Fixes #27955
How to Validate
Validate that the setup is syntactically correct and aligns with standard npm scoped registry configurations:
.npmrcmatches the setup-npmrc action configuration.@google:registry=https://wombat-dressing-room.appspot.com/is properly written.Pre-Merge Checklist