Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.21 KB

RELEASE.md

File metadata and controls

61 lines (42 loc) · 2.21 KB

How to release

Because we use RustlerPrecompiled, releasing is a bit more involved than it would be otherwise.

  1. Pick the new release version.

    • We follow Semantic Versioning.
    • Should be the current version in VERSION with -dev removed if no major changes happened.
  2. Begin drafting a new release.

    1. Go to https://github.com/rockneurotiko/graphql_query/releases
    2. Click "Draft a new release".
    3. Under "Select tag", set the tag to v{version}, e.g. v0.3.0.
    4. Keep the target branch as main.
    5. Click "Generate release notes".
    6. Stop here. Wait until later to actually publish the release.
  3. Open a PR with any changes needed for the release. Must include:

    • Updating the version in VERSION
    • Updating the version in any other files that reference it, like
      • README.md
      • Do a grep or rg with the version number to check the files
    • Updating the CHANGELOG.md file
  4. Merge the PR.

  5. On the release draft page, click "Publish release".

  6. Publishing the release will kick off the "Build precompiled NIFs" GitHub Action. Wait for this to complete.

    • It usually takes around 5-10 minutes.
  7. Generate the artifact checksums.

    1. Go to your local version of graphql_query.
    2. Ensure you have the latest version of main (post PR merge).
    3. Execute bin/fetch_checksums.sh to generate the checksums
  8. Paste the checksums into the release description on GitHub.

    1. Go to the release published earlier at the top of https://github.com/rockneurotiko/graphql_query/releases.
    2. Click the "Edit" pencil icon.
    3. At the bottom, paste the SHA256 contents under the heading "SHA256 of the artifacts" (ensure the contents are formatted to look like code).
  9. Run mix hex.publish.

    1. Double check the dependencies and files.
    2. Enter "Y" to confirm.
    3. Discard the auto-generated .exs file beginning with checksum.
  10. Bump the version in the VERSION file and add the -dev flag to the end.

    • Example: 0.3.0 to 0.3.1-dev.
    • Can either open up a PR or push directly to main.