Skip to content

Commit

Permalink
chore: simplify generating examples in release script (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored May 9, 2024
1 parent 45f6eb5 commit a4bf3a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions RELEASE-CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Assuming the next version is $NEW_VERSION=v0.16.0 or something like that.
./bin/release $NEW_VERSION
```
2. git-chglog -o CHANGELOG.md
3. go generate ./...; cd _examples; go generate ./...; cd ..
3. go generate ./...
4. git commit and push the CHANGELOG.md
5. Go to https://github.com/99designs/gqlgen/releases and draft new release, autogenerate the release notes, and Create a discussion for this release
6. Comment on the release discussion with any really important notes (breaking changes)

I used https://github.com/git-chglog/git-chglog to automate the changelog maintenance process for now. We could just as easily use go releaser to make the whole thing automated.

4 changes: 2 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package graphql
const Version = "$VERSION"
EOF
go generate ./...; cd _examples; go generate ./...; cd ..
go generate ./...
git add .

git commit -m "release $VERSION"
Expand All @@ -40,7 +40,7 @@ package graphql
const Version = "$VERSION-dev"
EOF
go generate ./...; cd _examples; go generate ./...; cd ..
go generate ./...
git add .
git commit -m "$VERSION postrelease bump"
git push origin HEAD:master
Expand Down

0 comments on commit a4bf3a7

Please sign in to comment.