Skip to content

fix(repo): use sudo for global npm install in publish workflow#34409

Merged
FrozenPandaz merged 1 commit intomasterfrom
fix/publish-sudo-npm
Feb 11, 2026
Merged

fix(repo): use sudo for global npm install in publish workflow#34409
FrozenPandaz merged 1 commit intomasterfrom
fix/publish-sudo-npm

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

Current Behavior

The npm install -g npm@11.5.2 step in the publish workflow fails with EACCES: permission denied, mkdir '/usr/local/share/man/man5' on newer GitHub Actions runner images.

Expected Behavior

The global npm install step completes successfully regardless of runner image permissions on /usr/local/share/man/.

Related Issue(s)

This is a known issue with GitHub Actions runners: actions/runner-images#9644

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner February 11, 2026 17:26
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 11, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 95faf0f
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/698cbbc42a66a700080e8fb5
😎 Deploy Preview https://deploy-preview-34409--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 11, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 95faf0f
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/698cbbc4fe843c0008852ca5
😎 Deploy Preview https://deploy-preview-34409--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Feb 11, 2026

View your CI Pipeline Execution ↗ for commit 95faf0f

Command Status Duration Result
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 33s View ↗
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded <1s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 7s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-11 17:33:52 UTC

@FrozenPandaz FrozenPandaz merged commit e48f2f3 into master Feb 11, 2026
24 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/publish-sudo-npm branch February 11, 2026 19:49
FrozenPandaz added a commit that referenced this pull request Feb 13, 2026
## Current Behavior

The `npm install -g npm@11.5.2` step in the publish workflow fails with
`EACCES: permission denied, mkdir '/usr/local/share/man/man5'` on newer
GitHub Actions runner images.

## Expected Behavior

The global npm install step completes successfully regardless of runner
image permissions on `/usr/local/share/man/`.

## Related Issue(s)

This is a known issue with GitHub Actions runners:
actions/runner-images#9644

(cherry picked from commit e48f2f3)
FrozenPandaz added a commit that referenced this pull request Feb 13, 2026
FrozenPandaz added a commit that referenced this pull request Feb 13, 2026
…4451)

## Current Behavior

The publish workflow uses `sudo npm install -g npm@11.5.2` which was
added in #34409. This causes issues with OIDC token permissions in the
release pipeline since `sudo` runs as a different user context.

## Expected Behavior

The publish workflow should use `npm install -g npm@11.5.2` without
`sudo`, matching the standard approach used elsewhere and avoiding
permission context issues during release.

## Related Issue(s)

Reverts #34409
FrozenPandaz added a commit that referenced this pull request Feb 13, 2026
…4451)

## Current Behavior

The publish workflow uses `sudo npm install -g npm@11.5.2` which was
added in #34409. This causes issues with OIDC token permissions in the
release pipeline since `sudo` runs as a different user context.

## Expected Behavior

The publish workflow should use `npm install -g npm@11.5.2` without
`sudo`, matching the standard approach used elsewhere and avoiding
permission context issues during release.

## Related Issue(s)

Reverts #34409
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants