-
Notifications
You must be signed in to change notification settings - Fork 19
feat: automagic version & publish when go-ipfs released #35
Conversation
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Sensible next steps
|
Oooh the robot just did it's first release! https://www.npmjs.com/package/@olizilla/go-ipfs-dep I am so proud 🤖✨ |
@olizilla awesome work! 👏🏽👏🏽👏🏽 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ❌ 💯
detect rc releases and other semver prerelease labels, and publish to npm with next as the dist tag
I'd do this before merging. RCs frequently contain pretty nasty bugs.
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Agreed! and DONE! It'll publish pre-releases (any semver string with a |
uses `npx semver` to check that the string we scrape from dist.ipfs.io is a valid semver string before trying to publish to it. License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Ok this now has
Only thing we need now is to
@daviddias do we have an npm release bot already? or should I create one? |
AFAIK, we never had one nor there was ever work towards it, so please be my guest :) Thank you! |
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
The motivation here is to remove any friction around testing out new and upcoming go-ipfs releases against our js based apps, to catch an compatibility issues as soon as possible. The other side of this effort is #34 which will let projects manually override the go-ipfs version to use. If we automated the publishing of this module so that all releases and release-candidates of go-ipfs have an equivalent version of go-ipfs-dep on npm, the we could drop the manual override feature, and just tell folks us the dependancy version number.
This is a proof of concept to show that we can automate the process of keeping this module up to date with go-ipfs.
npm version $LATEST
using the new release number from go-ipfs to keep them in sync, and thennpm publish
.of note, in it's current form this will publish whatever version go-ipfs publish, including release candidates. I'm all in favour or publishing release candidates here though.
also of note, it could be collapsed into a single github action, but it's kinda nice to see green checks in the github UI for each step:
fixes #32