Skip to content

Commit

Permalink
dx: just goproxy-release command for use after pushing new versions
Browse files Browse the repository at this point in the history
Per https://go.dev/doc/modules/publishing, runs
`GOPROXY=proxy.golang.org go list -m` for each of the modules (primary
library and migrators) to announce the new version.

This should only be run manually after a new release is tagged and the
tags are pushed to Github.
  • Loading branch information
peterldowns committed Oct 15, 2024
1 parent 370e699 commit 88528d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ tag-migrators:
git tag "migrators/bunmigrator/$raw"
git tag "migrators/ternmigrator/$raw"
goproxy-release:
#!/usr/bin/env bash
set -e
export GOPROXY=proxy.golang.org
version="$(cat VERSION)"
go list -m github.com/peterldowns/pgtestdb@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/pgmigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/golangmigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/goosemigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/dbmatemigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/atlasmigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/sqlmigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/bunmigrator@${version}
go list -m github.com/peterldowns/pgtestdb/migrators/ternmigrator@${version}
# set the VERSION and go.mod versions.
bump-version version:
#!/usr/bin/env bash
Expand Down

0 comments on commit 88528d2

Please sign in to comment.