Skip to content

ci(publish): give the npm-publish step the build heap too#270

Merged
drewstone merged 1 commit into
mainfrom
fix/publish-step-heap
Jun 21, 2026
Merged

ci(publish): give the npm-publish step the build heap too#270
drewstone merged 1 commit into
mainfrom
fix/publish-step-heap

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Follow-up to #269. The re-run publish still failed: npm publish re-runs the prepublishOnly: pnpm build hook inside the publish step, and that build OOMs the tsup rollup-dts worker at the default heap — the env on the standalone pnpm build step doesn't apply to the publish step. Add NODE_OPTIONS=--max-old-space-size=8192 there too. Once merged, v0.95.1 will be re-tagged to re-run the publish.

`npm publish` re-runs the `prepublishOnly: pnpm build` hook inside the
publish step, and that build OOMs the tsup rollup-dts worker at the
default heap — the build-step env doesn't apply to the publish step.
Add NODE_OPTIONS=--max-old-space-size=8192 to the publish step so the
hook's bundled declaration emit has the same heap as every other build.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Auto-approved PR — cd0ed159

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-21T15:14:23Z

@drewstone drewstone merged commit 53ca2a9 into main Jun 21, 2026
1 check 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.

2 participants