Skip to content

Commit

Permalink
ci: add examples verification to publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
bearstonedev committed Feb 20, 2024
1 parent a03b6c7 commit 63dd8dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions publish-update/publish-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,10 @@ git push origin "${newVersionFull}"
echo "Updating Go proxy with ${newVersionFull} ..."
GOPROXY=proxy.golang.org go list -m "github.com/bearstonedev/gotest@${newVersionFull}"

echo "Upgrading examples module to ${newVersionFull} ..."
cd examples
go get "github.com/bearstonedev/gotest@${newVersionFull}"
go mod tidy
git commit go.mod go.sum -m "ci: upgrade examples to ${newVersionFull}" && git push

echo "Successfully published ${newVersionFull}!"

0 comments on commit 63dd8dd

Please sign in to comment.