system-ui / theme-ui

Build consistent, themeable React apps based on constraint-based design principles

Home Page:https://theme-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.15.0-develop release is broken

hasparus opened this issue Β· comments

I managed to break the automatic release when fixing tests in opt-in-mdx branch πŸ˜…

To fix it, I'll need to

  • remove --no-frozen-lockfile from the install command on CI β€” Auto fails with

    Error: Working directory is not clean, make sure all files are committed [607](https://github.com/system-ui/theme-ui/actions/runs/3048416051/jobs/4913534038#step:8:608)
      at Auto.checkClean (/home/runner/work/theme-ui/theme-ui/node_modules/.pnpm/@auto-it+core@10.37.4_typescript@4.8.2/node_modules/@auto-it/core/src/auto.ts:2046:11)
    
  • make sure it installs properly with the same versions of dependencies

  • ensure the publish runs after yarn build (actual production build) not yarn dev (preconstruct links)


Original error in 0.15.0-develop.26 reported by @LekoArts in #2288 (comment):

Error: Cannot find module '../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook'
Require stack:
- /Users/lejoe/code/github/gatsby-themes/node_modules/theme-ui/dist/theme-ui.cjs.js

I fixed some problems on the CI, got rate-limited by GitHub, and ended up releasing v0.15.0-develop.30 manually.

My test CodeSandbox getting some problems from @mdx-js/loader in Next.js, but it's disconnected from Theme UI.