Skip to content

fix(ci): Fix the mobx-devtools-mst npm publish and add the Firefox source zip to releases - #178

Merged
andykog merged 2 commits into
masterfrom
fix/npm-publish-and-firefox-source
Nov 29, 2026
Merged

andykog merged 2 commits into
masterfrom
fix/npm-publish-and-firefox-source

Conversation

@andykog

@andykog andykog commented Nov 29, 2026

Copy link
Copy Markdown
Member

The 0.9.34 release did not publish mobx-devtools-mst to npm. In the publish workflow, npm version failed with ERESOLVE. The cause is unexpected-react, a dev dependency that needs react@^15. The repo uses React 18 since #173, and no code uses unexpected-react.

This PR also changes the release script, because the 0.9.34 release found two more problems:

  • Firefox Add-ons asks for the source code, and the script did not make it.
  • gh release create failed with a 404 after the release commit was already pushed. The active gh account had no write access to the repo.

Key changes

  • Remove unexpected-react from the dev dependencies. The tests use only unexpected.
  • Add workflow_dispatch to the publish workflow, so you can start it by hand. This PR changes a file in .github/, so the merge starts the workflow and publishes the missing version.
  • New script npm run build:firefox-source. It puts the committed source code into lib/firefox-source.zip. The release script runs it after it pushes the release commit.
  • The release script stops at the start if the active gh account cannot push to the repo.
  • HACKING.md tells Firefox reviewers how to build the add-on from the source zip.

Andrew Kogut added 2 commits November 29, 2026 20:48
…ish works

unexpected-react needs react@^15, and the repo uses React 18. In CI, npm version failed with ERESOLVE, so mobx-devtools-mst was not published. Also add workflow_dispatch to start the publish by hand.
@andykog andykog self-assigned this Nov 29, 2026
@andykog
andykog enabled auto-merge (squash) November 29, 2026 19:49
@andykog
andykog merged commit b64800c into master Nov 29, 2026
1 check passed
@andykog
andykog deleted the fix/npm-publish-and-firefox-source branch November 29, 2026 19:52
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