The @shopify/checkout-sheet-kit module is published to NPM with public access.
Before creating a release, ensure the following version strings are updated and synchronized:
- Bump the package version
Important: The version in package.json must match the Git tag exactly, including any pre-release suffixes (e.g., -alpha.1, -beta.1, -rc.1).
- Production releases:
X.Y.Z(e.g.,3.5.0) - Pre-releases:
X.Y.Z-{alpha|beta|rc}.N(e.g.,3.5.0-alpha.1,3.5.0-beta.2,3.5.0-rc.1)
Pre-release suffixes ensure npm users must explicitly opt-in to install pre-release versions.
Navigate to https://github.com/Shopify/checkout-sheet-kit-react-native/releases and click "Draft a new release", then complete the following steps:
- Ensure you're on the
mainbranch - Create a tag for the new version (e.g.,
3.5.0) - Use the same tag as the release title
- Document the full list of changes since the previous release, tagging merged pull requests where applicable
- ✅ Check "Set as the latest release"
- Click "Publish release"
- Ensure you're on a feature/release branch (NOT
main) - Create a tag with a pre-release suffix (e.g.,
3.5.0-alpha.1,3.5.0-beta.1,3.5.0-rc.2) - Use the same tag as the release title
- Document the changes being tested in this pre-release
- ✅ Check "Set as a pre-release" (NOT "Set as the latest release")
- Click "Publish release"
When you publish a release (production or pre-release), the publish workflow will automatically:
- Validate versions: Ensures
package.jsonversion matches the git tag - Determine npm tag: Pre-releases (
-alpha,-beta,-rc) publish tonexttag, production releases publish tolatesttag - Build and publish: Publishes the version to npm
For users to install a pre-release version:
npm - Must specify the exact version or use the next tag:
npm install @shopify/checkout-sheet-kit@3.5.0-beta.1
# or
npm install @shopify/checkout-sheet-kit@nextCocoaPods - Must specify the exact version in Podfile:
pod 'RNShopifyCheckoutSheetKit', '3.5.0-beta.1'Version mismatch error: Update package.json to match the git tag, then recreate the release.
Pre-release not on npm: Verify version has suffix (-alpha.1, -beta.1, -rc.1) and "Set as a pre-release" was checked.
Wrong npm tag: Manually fix with npm dist-tag add @shopify/checkout-sheet-kit@3.5.0 latest