Skip to content

fix: exclude dev files from GitHub release archives via export-ignore#49

Merged
shahboura merged 6 commits into
mainfrom
fix/release-zip-exports
May 7, 2026
Merged

fix: exclude dev files from GitHub release archives via export-ignore#49
shahboura merged 6 commits into
mainfrom
fix/release-zip-exports

Conversation

@shahboura
Copy link
Copy Markdown
Owner

Summary

Adds export-ignore rules to .gitattributes so GitHub release zips contain only
distribution files — not the full source tree. Uses wildcard patterns for minimal
maintenance.

Before

Release zip: 250+ files including docs/, .github/, evals/, all scripts, test
fixtures, CI configs.

After

Release zip: ~130 files — .opencode/, install.js, opencode.json,
scripts/lib/, package.json, README, LICENSE, CHANGELOG, AGENTS.md.

Excluded

  • docs/ — available on GitHub Pages
  • .github/ — CI/CD
  • evals/ — eval harness
  • state/, handoff/ — project runtime
  • scripts/*.js, scripts/*.json, scripts/fixtures/ — validation, tests, doctor
  • .markdownlint*, .gitignore, package-lock.json — dev configs
  • *release-please* — release automation

Unaffected

  • git clone — full source tree
  • npm install / npx — unchanged
  • npm publish — unchanged

Validation

17/17 doctor gates pass. No regressions.

Risk & Rollback

  • Risk level: [medium]
  • Rollback: revert .gitattributes to single-line * text=auto eol=lf

@shahboura shahboura merged commit 2296fbc into main May 7, 2026
18 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