Open akinncar opened 2 years ago
I like that idea and wanted to try it in all my repos (VisionCamera, MMKV, Blurhash, ...) but never got the chance to do it, since I also had to think about a manual way to trigger it (because a release is a commit and that would be an infinite loop), how would you solve that problem?
Maybe we can also trigger a PR whenever a dependency changes (like RN Skia), run pod install, and on merge a new version gets released
you don't need to do a release commit using semantic-release
, you can use "version": "0.0.0",
in your package.json
, semantic-release will bump the lib version using github tags, and according to your last commit
Take a look into semantic-release README Commit message | Release type |
---|---|
fix(pencil): stop graphite breaking when too much pressure applied | Patch Fix Release |
feat(pencil): add 'graphiteWidth' option | Minor Feature Release |
perf(pencil): remove graphiteWidth optionBREAKING CHANGE: The graphiteWidth option has been removed.The default graphite width of 10mm is always used for performance reasons. | Major Breaking Release(Note that the BREAKING CHANGE: token must be in the footer of the commit) |
Oh, that's good to know! Do you know if this also works with 2FA enabled on npm? Is there a special token that can bypass 2FA, or do I have to disable it for that to work?
You don't need to disable it! you can generate a specific token for automations
Awesome! I'll check it out thanks Akinn!
I can maybe work on that soon. Have been working on CI/CD and automation a lot lately, so i hope i'll get it right 😅
What about automated releases? Every commit to main branch can be a new version
Workflow: