Skip to content

Package release tarballs with dependencies#160

Merged
chailandau merged 1 commit into
mainfrom
chai/self-contained-release-tarball
Jun 18, 2026
Merged

Package release tarballs with dependencies#160
chailandau merged 1 commit into
mainfrom
chai/self-contained-release-tarball

Conversation

@chailandau

Copy link
Copy Markdown
Collaborator

Why

GitHub Release tarballs are used by package-manager installs, where invoking a registry during install can be brittle. Keep npm publishing unchanged while making the release archive self-contained for downstream package-manager consumers.

What

  • Add a release-tarball packer that includes built Ghost output plus runtime dependencies
  • Switch the automatic and manual GitHub Release tarball workflows to use that packer
  • Add checks that the release tarball runs without installing dependencies
  • Add a guard that the normal npm package tarball does not include node_modules

Risk Assessment

Low to medium: this changes only the GitHub Release archive shape, not the npm publish command or normal npm package contents. The new checks cover both sides of that boundary.

References

  • pnpm build
  • pnpm test
  • pnpm check
  • Direct npm pack inspection confirmed the normal npm tarball does not include node_modules

Generated with Codex

@chailandau chailandau marked this pull request as ready for review June 18, 2026 15:27
@chailandau chailandau requested a review from nahiyankhan as a code owner June 18, 2026 15:27
@chailandau chailandau merged commit 8ee9197 into main Jun 18, 2026
4 checks passed
@chailandau chailandau deleted the chai/self-contained-release-tarball branch June 18, 2026 15:28
@github-actions github-actions Bot mentioned this pull request Jun 18, 2026
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