Skip to content

Conversation

@westeezy
Copy link

@westeezy westeezy commented Nov 10, 2025

What changes are you making?

  1. Rename deploy.yml to publish.yml for GH Actions to match other
    kit libraries
  2. Update title
  3. Add version validation
  4. Update docs

Before you merge

Important

Releasing a new version of the kit?

  • [N/A] I have bumped the version number in the podspec file.

Releasing a new major version?

  • [N/A] I have bumped the version number in the README.

Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

Enables creating pre-release tags from any branch with configurable version numbers and types (alpha/beta/rc), with dry-run support for safe testing before publishing.
@westeezy westeezy requested a review from a team as a code owner November 10, 2025 22:26
1. Rename `deploy.yml` to `publish.yml` for GH Actions to match other
   kit libraries
2. Update title
3. Add version validation
4. Update docs
@westeezy westeezy changed the title feat: add pre-release workflow for alpha/beta/rc versions Cleanup Publish Workflow Nov 11, 2025
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Validate versions match
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only difference here is this validate task

@westeezy westeezy changed the base branch from main to development November 18, 2025 15:13
run: |
PODSPEC_VERSION=$(grep -E "s.version\s*=\s*" ShopifyCheckoutSheetKit.podspec | sed -E 's/.*"([^"]+)".*/\1/')
SWIFT_VERSION=$(grep -E "public let version = " Sources/ShopifyCheckoutSheetKit/ShopifyCheckoutSheetKit.swift | sed -E 's/.*"([^"]+)".*/\1/')
GIT_TAG="${{ github.event.release.tag_name }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could be very defensive against failing to extract these vars, and do something like

    if [ -z "$PODSPEC_VERSION" ]; then
        echo "Error: Could not extract version from ShopifyCheckoutSheetKit.podspec"
        echo "Expected format: s.version = \"X.Y.Z\""
        exit 1
      fi

      if [ -z "$SWIFT_VERSION" ]; then
        echo "Error: Could not extract version from ShopifyCheckoutSheetKit.swift"
        echo "Expected format: public let version = \"X.Y.Z\""
        exit 1
      fi

But feels alright as it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants