-
Notifications
You must be signed in to change notification settings - Fork 57
Maintenance
This is the location for documentation, guides, and other information for the GraphQL-JIT package maintainers. It is intended to provide a set of resources and references for all package developers and maintainers.
For Versions 0.x.x
, we follow 0.Major.MinorOrPatch
.
From version 1.0.0
, the package would follow - Major.Minor.Patch
As stated in Versions, find out the next version number depending on the changes from the previous release.
To view those changes in GitHub,
- Navigate to https://github.com/zalando-incubator/graphql-jit/compare
- Choose the
base
to the latest tag published previously. - Make sure the
compare
field is themain
branch - Determine the next version (whether it is a major, minor, or a patch bump) based on the list commits below
- Update
package.json
's version to the new version locally.- Do NOT use
npm version patch
or similar commands as it creates a tag. We will create the tag using GH releases.
- Do NOT use
- Commit the changes and create a new Pull Request with the following details -
Bump release to 0.x.x
#### Breaking Changes:
- Breaking change (#000)
#### Bug fixes:
- fix: fix1 (#000)
#### Version updates:
- Bump graphql from 0.0.0 to 0.0.0 (#000)
#### Other changes:
- Commit Message (#000)
Get approval from one other maintainer and merge the PR to the main branch. (Note: At this stage the package is still not published)
NPM release happens automatically in the CI every time a new tag is created in the main
branch. To create a new tag, we will use GitHub releases.
- Navigate to https://github.com/zalando-incubator/graphql-jit/releases
- "Draft new release"
- Select "Choose a tag" and use
v0.x.x
the version for this release (note: we use the prefixv
for tags and releases). -
Release Title:
v0.x.x
- Release Description: Same as the PR description as formed above.
- Publish the new release.
What happens when you publish the release?
Publishing the release would create -
- The tag
v0.x.x
- list of tags: https://github.com/zalando-incubator/graphql-jit/tags - The release
v0.x.x
- list of releases: https://github.com/zalando-incubator/graphql-jit/releases - The NPM publish pipeline - https://github.com/zalando-incubator/graphql-jit/actions/workflows/publish.yml
- Once the pipeline completes successfully, the package would be published to the NPM registry - https://www.npmjs.com/package/graphql-jit?activeTab=versions