Skip to content

fix(ci): allow sharp/unrs-resolver build scripts via pnpm-workspace.yaml - #48

Merged
Origin173 merged 1 commit into
mainfrom
fix/pnpm-builds
Aug 16, 2026
Merged

fix(ci): allow sharp/unrs-resolver build scripts via pnpm-workspace.yaml#48
Origin173 merged 1 commit into
mainfrom
fix/pnpm-builds

Conversation

@Origin173

Copy link
Copy Markdown
Owner

Checklist

  • Changes have been tested locally and work as expected.
  • All tests in workflows pass successfully.
  • Documentation has been updated if necessary.
  • Code formatting and commit messages align with the project's conventions.
  • Comments have been added for any complex logic or functionality if possible.

This PR is a ..

  • 🆕 New feature
  • 🐞 Bug fix
  • 🛠 Refactoring
  • ⚡️ Performance improvement
  • 🌐 Internationalization
  • 📄 Documentation improvement
  • 🎨 Code style optimization
  • ❓ Other (Please specify below)

Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • e.g. close #xxxx, fix #xxxx

The Build Artifacts workflow fails on pnpm install with ERR_PNPM_IGNORED_BUILDS.

Description

  • Please insert your description here and provide info about the "what" this PR is solving.

Current pnpm versions (v10+) no longer honor the old only-built-dependencies key in .npmrc and fail pnpm install with ERR_PNPM_IGNORED_BUILDS for ignored native build scripts (sharp, unrs-resolver).

Add the replacement allowBuilds config in a new pnpm-workspace.yaml so pnpm install can run those build scripts again, and remove the dead .npmrc entries that no longer take effect.

Additional Context

  • Add any other relevant information or screenshots here.

Verified locally with pnpm v11.22.0: pnpm import && pnpm install now succeeds and pnpm ignored-builds reports nothing ignored. Only build.yml uses pnpm; test.yml uses npm and is unaffected.

Current pnpm versions (v10+) no longer honor the old `only-built-dependencies`
key and fail `pnpm install` with ERR_PNPM_IGNORED_BUILDS for ignored native
build scripts. Add the replacement `allowBuilds` config in pnpm-workspace.yaml
so the Build Artifacts workflow can install sharp and unrs-resolver again.
@Origin173
Origin173 merged commit 6df45b4 into main Aug 16, 2026
2 checks passed
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.

1 participant