[XELP] Move the npm release registry token to the job - #4
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR centralizes npm authentication in the GitHub Actions workflow by moving NODE_AUTH_TOKEN to the job level, removing duplicated per-step configuration to make npm ci/publish harder to misconfigure.
Changes:
- Add
NODE_AUTH_TOKENto thereleasejob environment. - Remove redundant
NODE_AUTH_TOKENdeclarations from individual steps.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ljunkie
force-pushed
the
rob/sync-npm-release-auth
branch
from
August 28, 2026 02:51
b7b3601 to
330daa7
Compare
Copilot stopped reviewing on behalf of
ljunkie due to an error
August 28, 2026 02:52
ljunkie
force-pushed
the
rob/sync-npm-release-auth
branch
from
August 28, 2026 03:06
330daa7 to
b30d4ea
Compare
Copilot stopped reviewing on behalf of
ljunkie due to an error
August 28, 2026 03:07
ljunkie
force-pushed
the
rob/sync-npm-release-auth
branch
from
August 28, 2026 03:08
b30d4ea to
e815c6e
Compare
Copilot stopped reviewing on behalf of
ljunkie due to an error
August 28, 2026 03:09
ljunkie
force-pushed
the
rob/sync-npm-release-auth
branch
from
August 28, 2026 03:35
e815c6e to
286fdff
Compare
Copilot stopped reviewing on behalf of
ljunkie due to an error
August 28, 2026 03:36
| # The fallback keeps this working in a fork that has no @plexinc | ||
| # dependencies, where the repo token is enough. | ||
| # | ||
| NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} |
The token was set on the two steps that obviously needed it, the published version check and the publish. That is enough here, because this package has no @plexinc dependencies of its own, but not in the forks that do: brighterscript-formatter cannot run npm ci without it. Give it to the install step as well, and keep it off the job so it stays out of the environment of steps that never reach the network. This restores the file to being identical to the copies in the other two forks.
ljunkie
force-pushed
the
rob/sync-npm-release-auth
branch
from
August 28, 2026 05:00
286fdff to
6a609cf
Compare
Copilot stopped reviewing on behalf of
ljunkie due to an error
August 28, 2026 05:01
Comment on lines
+128
to
135
| env: | ||
| # Reading a dependency published from another repository requires that | ||
| # repository to be listed under the package's Manage Actions access. | ||
| # The grant is per package and is not inherited, so a newly published | ||
| # @plexinc package needs its consumers added before this will resolve. | ||
| # | ||
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: npm ci |
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.
The registry token was set on the two steps that obviously needed it, the published version
check and the publish itself. That is enough in this repo, which has no
@plexincdependencies of its own, but not in the forks that do:
brighterscript-formattercannotrun
npm ciwithout it.Setting it once on the job removes the choice, and restores this workflow to being
identical to the copies in the other two forks.