Skip to content

fix npm install#79

Merged
simongdavies merged 1 commit intohyperlight-dev:mainfrom
simongdavies:update-publish
Apr 23, 2026
Merged

fix npm install#79
simongdavies merged 1 commit intohyperlight-dev:mainfrom
simongdavies:update-publish

Conversation

@simongdavies
Copy link
Copy Markdown
Member

This pull request updates the npm upgrade step in the GitHub Actions workflow to address a known issue with npm self-upgrades. Instead of using npm install -g npm@..., the workflow now uses npx to bootstrap the upgrade process, which avoids a bug that can cause the upgrade to fail.

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 23, 2026 17:03
@simongdavies simongdavies added the bug Something isn't working label Apr 23, 2026
Copy link
Copy Markdown
Contributor

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

This PR updates the npm upgrade step in the npm publishing GitHub Actions workflow to avoid npm’s self-upgrade failure mode during trusted publishing setup.

Changes:

  • Replace npm install -g npm@... with an npx-bootstrapped npm install to avoid the self-upgrade bug.
  • Expand inline documentation in the workflow explaining the rationale and failure mode being avoided.

@simongdavies simongdavies merged commit 11204ae into hyperlight-dev:main Apr 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants