Skip to content

Simplify npm publish step in workflow#68

Open
gracepark wants to merge 2 commits intomainfrom
gracepark-patch-1
Open

Simplify npm publish step in workflow#68
gracepark wants to merge 2 commits intomainfrom
gracepark-patch-1

Conversation

@gracepark
Copy link
Copy Markdown

Part of: https://github.com/github/web-systems/issues/4309

Removed npm whoami command from publish workflow.

Removed npm whoami command from publish workflow.
Copilot AI review requested due to automatic review settings May 8, 2026 20:21
@gracepark gracepark requested a review from a team as a code owner May 8, 2026 20:21
@gracepark gracepark requested a review from bteng22 May 8, 2026 20:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Simplifies the GitHub Actions npm publish workflow triggered on release creation by removing the npm whoami check and adjusting the publish step.

Changes:

  • Removed npm whoami from the publish job.
  • Updated the publish step to run npm --ignore-scripts publish --provenance as a single command (but also removed the previous auth env wiring).
Show a summary per file
File Description
.github/workflows/publish.yml Simplifies the npm publish step in the release-created workflow.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (1)

.github/workflows/publish.yml:27

  • PR description says this change only removes npm whoami, but the diff also removes the NODE_AUTH_TOKEN env wiring for the publish step. Please update the description to reflect the behavioral change, or restore the env if it was removed unintentionally.
      - run: npm --ignore-scripts publish --provenance
  • Files reviewed: 2/2 changed files
  • Comments generated: 1

- run: npm whoami; npm --ignore-scripts publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm --ignore-scripts publish --provenance
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.

3 participants