Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up the multi-package publishing process #263

Closed
2 tasks done
rhamzeh opened this issue May 29, 2024 · 1 comment · Fixed by #264
Closed
2 tasks done

Set up the multi-package publishing process #263

rhamzeh opened this issue May 29, 2024 · 1 comment · Fixed by #264
Assignees

Comments

@rhamzeh
Copy link
Member

rhamzeh commented May 29, 2024

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.

  • pushing a v0.1.0-js tag publishes v0.1.0 of the js package to npm
  • pushing a v0.2.1-java tag publishes v0.2.1 of the java package to mavencentral

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.

  • Find a tagging convention that would work for Go
    /pkg/go/v0.x.x works!
  • Find a multi-publishing workflow
@d-jeffery
Copy link
Contributor

d-jeffery commented May 30, 2024

➜  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


@rhamzeh rhamzeh mentioned this issue Jun 14, 2024
4 tasks
@rhamzeh rhamzeh closed this as completed Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants