chore: stop committing dist/, publish WIP releases via CI only - #6
Open
k0stik wants to merge 5 commits into
Open
chore: stop committing dist/, publish WIP releases via CI only#6k0stik wants to merge 5 commits into
k0stik wants to merge 5 commits into
Conversation
Mirrors the rollout on the rest of the stack: dist/ gitignored, pre-commit hook no longer force-adds dist, and .github/workflows/release-wip.yml + cleanup-wip-releases.yml wire up mat3ra/actions' composite actions. Bumps ade, code, cove, esse, ide, made, mode, prode, standata, wave.js, wode to their WIP release tarballs. Fixes a type error surfaced by the newer @mat3ra/mode: its own Model.toJSON() return type (ModelEntity) declares `type: string` rather than the literal-typed union AnyModelSchema expects, so ModelConversionHandler.convertToCategorized's stricter parameter type no longer accepts it directly. Casts model?.toJSON() to AnyModelSchema at both call sites - the runtime JSON is already correctly shaped, mode's own declared type is just looser than that. RELEASING.md documents the CI-only publish path.
mat3ra/actions is being made public, so callers no longer need to checkout it and invoke the composite action locally; call the workflow_call reusable workflow directly instead. [release]
timurbazhirov
approved these changes
Aug 17, 2026
Full explanation (why this exists, tag scheme, EINTEGRITY gotcha, cleanup policy) now lives in one place instead of duplicated near- identically across 22 repos.
The js/publish action never ran a build step - it relied entirely on dist/ already being committed to git. Since dist/ was gitignored in this rollout, a real `npm publish` on merge would ship whatever partial/stale dist/ happens to exist in the CI workspace instead of a full build (already caused broken @mat3ra/esse@2026.8.18-0 and @mat3ra/utils@2026.8.18-0 releases). Adding prepublishOnly (an npm lifecycle hook npm publish runs automatically) running the same build script already used and verified by release-wip.yml. Verified locally: rm -rf dist && npm run prepublishOnly produces a complete dist/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dist/build output to git; it's now gitignored..github/workflows/release-wip.yml): pushing a commit with[release]builds, packs, and publishes a GitHub pre-release tarball taggedwip-<short-sha>..github/workflows/cleanup-wip-releases.yml) that removes stalewip-*pre-releases whose commit is no longer any branch's tip (never touches non-prerelease releases).@mat3ra/*dependencies to their released WIP tarball URLs.RELEASING.mddocumenting the CI-only release process.Part of the repo-wide rollout to stop committing
dist/across@mat3ra/*packages (companion PR: mat3ra/actions#43).Test plan
wip-*pre-release tarball