Giter Club home page Giter Club logo

Comments (5)

toddbaert avatar toddbaert commented on August 16, 2024 1

With the Java SDK and the Node SDK, we automate every push to main, but that creates a SNAPSHOT/prerelease build respectively. These aren't "official" releases, but release-candidates.

I think if we build something from main, it would ideally be like that. Seems like similar idioms exist in golang: https://go.dev/doc/modules/release-workflow#pre-releaseo

from go-sdk.

warber avatar warber commented on August 16, 2024 1

Hi, just wanted to mention that the very popular goreleaser project also supports "releasing" libraries. Using it in the context of github actions, this would just give us a little neat automation around changelog generation and creating the github releases. I've just played with it recently using a dummy repository and it worked quite nice.

from go-sdk.

skyerus avatar skyerus commented on August 16, 2024

Should we automate the creation of a release on every merge to main?
Or should we expect the releases to be created manually and have an action that listens to that event?

@toddbaert @beeme1mr @james-milligan

from go-sdk.

skyerus avatar skyerus commented on August 16, 2024

I can see from the Node SDK implementation that no "official" github tag/release is created as npm handles the package's release process.
Golang's process works differently in that as long as the module is public it is directly accessible. For example one can go get the module at any commit using its hash:
go get github.com/open-feature/golang-sdk@7c8080bebe44e8e0bb7eb25645e5da76a6296d03
The act of "publishing" here would be to create a tag. If we only create a tag (without a release) then in my opinion this would behave as a release candidate.

from go-sdk.

skyerus avatar skyerus commented on August 16, 2024

Hi, just wanted to mention that the very popular goreleaser project also supports "releasing" libraries. Using it in the context of github actions, this would just give us a little neat automation around changelog generation and creating the github releases. I've just played with it recently using a dummy repository and it worked quite nice.

Thank you for pointing us to that @warber, I followed your footsteps and forked the example repo to have a play with it myself.

We can combine github-tag-action with goreleaser to automate the creation of a tag on merge to main and subsequently the go release process using the created tag. We can mark the releases as prerelease in the .goreleaser.yaml config file until the first official release.

The github tag action defaults to bumping by a minor version (e.g. v0.1.0 to v0.2.0) but you can specify how to bump the version in the commit message (#patch / #minor / #major).

I've created a PR with the config needed to make the above happen.

After discussion we've opted for the approach of manual tag creation (must be prefixed with v e.g. v0.1.9) that triggers the goreleaser process. I've created a PR with the config needed to make this happen.

from go-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.