I have an Electron app that I want to publish with semantic-release.
I need to create a matrix in Github Action to build the app on different platforms:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
Now, if I run semantic-release before the build, it creates a Release in Github, and the build can't update an existing Release.
If I want to run semantic-release after the build,
- I don't know the new version for the build, and I don't know if I need to run the build anyway.
- How can I publish the build artifacts with
semantic-release?
You can run
semantic-releasein dry mode (--dry-run) and it'll not create and publish a release. Then just get the next version number via grep.