Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.15 KB

RELEASING.md

File metadata and controls

35 lines (22 loc) · 1.15 KB

Releasing shopify-node-api

  1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org

  2. Ensure your local repo is up-to-date

    git checkout main && git pull
    
  3. Add an entry for the new release to CHANGELOG.md, and/or move the contents from the Unreleased to the new release

  4. Increment the version in src/version.ts.

  5. Stage the CHANGELOG.md and src/version.ts files

    git add CHANGELOG.md src/version.ts
    
  6. To update the version, create the appropriate tag, commit all staged changes and push to the remote repository

    yarn version [ --patch | --minor | --major ]
    

    Select the applicable option to the yarn version command to increment the appropriate part of the version number, i.e., for a version of x.y.z,

    • --patch to increment the z
    • --minor to increment the y
    • --major to increment the x

    The preversion and postversion scripts in package.json take care of the pre (testing) and post (pushing) actions.

  7. Login to shipit and press Deploy on the appropriate commit (the commit description will be the version number).