Skip to content

fix: run full build before npm publish (broken 2026.8.18-0 release) - #53

Merged
timurbazhirov merged 1 commit into
mainfrom
fix/prepublish-build
Aug 18, 2026
Merged

fix: run full build before npm publish (broken 2026.8.18-0 release)#53
timurbazhirov merged 1 commit into
mainfrom
fix/prepublish-build

Conversation

@k0stik

@k0stik k0stik commented Aug 18, 2026

Copy link
Copy Markdown
Member

Summary

Same systemic issue as mat3ra/esse#421: `js/publish` never runs a build step, relying
entirely on `dist/` being committed to git. Since #52 gitignored `dist/`, the real
`npm publish` on merge to `main` shipped a completely empty `dist/` — nothing in
that job's steps (install, test) builds it. This already shipped a broken
@mat3ra/utils@2026.8.18-0 to npm.

Fix

Add `prepublishOnly` running the same `transpile` script already used and verified by
`release-wip.yml`. Verified locally: `rm -rf dist && npm run prepublishOnly` produces
the full, correct `dist/js/` tree.

The js/publish action never ran a build step - it relied entirely on
dist/ already being committed to git. Since dist/ was gitignored in
#52, `npm publish` on merge to main shipped an EMPTY dist/ - nothing
in that CI job's steps (install, test) builds it. This already shipped
a broken @mat3ra/utils@2026.8.18-0 to npm.

Adding prepublishOnly (an npm lifecycle hook npm publish runs
automatically) running the same transpile script already used and
verified by release-wip.yml.
@timurbazhirov
timurbazhirov merged commit 320e116 into main Aug 18, 2026
9 checks passed
@timurbazhirov
timurbazhirov deleted the fix/prepublish-build branch August 18, 2026 17:50
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