Skip to content

[XELP] Move the npm release registry token to the job - #4

Merged
ljunkie merged 1 commit into
xelp/mainfrom
rob/sync-npm-release-auth
Aug 28, 2026
Merged

[XELP] Move the npm release registry token to the job#4
ljunkie merged 1 commit into
xelp/mainfrom
rob/sync-npm-release-auth

Conversation

@ljunkie

@ljunkie ljunkie commented Aug 28, 2026

Copy link
Copy Markdown
Member

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 @plexinc
dependencies of its own, but not in the forks that do: brighterscript-formatter cannot
run npm ci without 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.

Copilot AI lite review requested due to automatic review settings August 28, 2026 02:43

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.

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_TOKEN to the release job environment.
  • Remove redundant NODE_AUTH_TOKEN declarations from individual steps.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/xelp_npm_release.yml Outdated
@ljunkie
ljunkie force-pushed the rob/sync-npm-release-auth branch from b7b3601 to 330daa7 Compare August 28, 2026 02:51
Copilot AI review requested due to automatic review settings August 28, 2026 02:51

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/xelp_npm_release.yml
@ljunkie
ljunkie force-pushed the rob/sync-npm-release-auth branch from 330daa7 to b30d4ea Compare August 28, 2026 03:06
Copilot AI review requested due to automatic review settings August 28, 2026 03:06

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/xelp_npm_release.yml Outdated
Copilot AI review requested due to automatic review settings August 28, 2026 03:08
@ljunkie
ljunkie force-pushed the rob/sync-npm-release-auth branch from b30d4ea to e815c6e Compare August 28, 2026 03:08

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/xelp_npm_release.yml Outdated
Comment thread .github/workflows/xelp_npm_release.yml
Copilot AI review requested due to automatic review settings August 28, 2026 03:35
@ljunkie
ljunkie force-pushed the rob/sync-npm-release-auth branch from e815c6e to 286fdff Compare August 28, 2026 03:35

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/xelp_npm_release.yml
Comment thread .github/workflows/xelp_npm_release.yml Outdated
# 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 }}
Comment thread .github/workflows/xelp_npm_release.yml Outdated
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.
Copilot AI review requested due to automatic review settings August 28, 2026 05:00
@ljunkie
ljunkie force-pushed the rob/sync-npm-release-auth branch from 286fdff to 6a609cf Compare August 28, 2026 05:00

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/xelp_npm_release.yml
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
Comment thread .github/workflows/xelp_npm_release.yml
@ljunkie
ljunkie merged commit 09bf8f8 into xelp/main Aug 28, 2026
8 of 9 checks passed
@ljunkie
ljunkie deleted the rob/sync-npm-release-auth branch August 28, 2026 06:26
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.

2 participants