Closed
Description
Related: MithrilJS/mithril.js#2987
TL;DR: I'm running into pain with releases being cut prematurely if it fails to successfully be published. Ideally, we'd be following this flow, aborting the whole process if any step fails:
- Bump version, commit, and create new tag per pr-release.
- Push new tag per pr-release.
- Push (in our case, force-push) release branch.
- Do
npm publish
. - Finally, create a release on GitHub.
Unfortunately, the current design of pr-release forces us into this flow:
- Bump version, commit, and create new tag per pr-release.
- Push new tag per pr-release.
- Create a release on GitHub.
- Push (in our case, force-push) release branch.
- Do
npm publish
.
1 through 3 are wrapped up into a single command, so we can't move the release creation to after the npm publish
without moving the version bump ahead of it as well. And moving the version bump ahead of the publish means the version isn't bumped before publishing, and this will obviously cause the npm publish
to fail due to the version already existing.
Metadata
Metadata
Assignees
Labels
No labels