openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
17 stars 7 forks source link

Set up the multi-package publishing process #263

Closed rhamzeh closed 3 months ago

rhamzeh commented 4 months ago

We would like to publish the different packages to their respective registries, for that we're gonna have to setup a publish process that works for a mono repo.

First is investigating if we can publish a particular package if a tag with an identifier is pushed, e.g.

As go treats any tag as a release, it will treat the above as releases too, but let's still push vx.x.x-go tags and use those for go

Investigate whether https://github.com/changesets/changesets can be helpful in this case, otherwise we'll need to build the tooling ourselves.

d-jeffery commented 4 months ago
➜  testing-ground GOPROXY=direct go get -u github.com/d-jeffery/go-lib-test
go: downloading github.com/d-jeffery/go-lib-test v0.2.0-java
go: upgraded github.com/d-jeffery/go-lib-test v0.1.3-go => v0.2.0-java

➜  testing-ground GOPROXY=direct go get github.com/d-jeffery/go-lib-test@v0.1.5-go
go: downloading github.com/d-jeffery/go-lib-test v0.1.5-go
go: downgraded github.com/d-jeffery/go-lib-test v0.2.0-java => v0.1.5-go

➜  testing-ground GOPROXY=direct go get github.com/d-jeffery/go-lib-test@latest   
go: upgraded github.com/d-jeffery/go-lib-test v0.1.5-go => v0.2.0-java

➜  testing-ground GOPROXY=direct go get github.com/d-jeffery/go-lib-test@v0.1.5-go
go: downgraded github.com/d-jeffery/go-lib-test v0.2.0-java => v0.1.5-go

➜  testing-ground GOPROXY=direct go get -u github.com/d-jeffery/go-lib-test     
go: upgraded github.com/d-jeffery/go-lib-test v0.1.5-go => v0.2.0-java

➜  testing-ground GOPROXY=direct go get -u github.com/d-jeffery/go-lib-test@v0.1.2-js
go: downloading github.com/d-jeffery/go-lib-test v0.1.2-js
go: downgraded github.com/d-jeffery/go-lib-test v0.2.0-java => v0.1.2-js

➜  testing-ground GOPROXY=direct go get -u github.com/d-jeffery/go-lib-test          
go: upgraded github.com/d-jeffery/go-lib-test v0.1.2-js => v0.2.0-java

➜  testing-ground go list -m -versions github.com/d-jeffery/go-lib-test

github.com/d-jeffery/go-lib-test v0.1.0-go v0.1.1-go v0.1.2-js v0.1.3-go v0.1.5-go v0.2.0-java

➜  testing-ground GOPROXY=direct go get github.com/d-jeffery/go-lib-test@v0.2.0-go
go: downloading github.com/d-jeffery/go-lib-test v0.2.0-go
go: downgraded github.com/d-jeffery/go-lib-test v0.2.0-java => v0.2.0-go