From 780e6cec857eedcf9f1618d2ba7023131a252352 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Tue, 10 Feb 2026 14:21:36 -0500 Subject: [PATCH] fix: use simple v-prefixed tags and fix gem publish path Release Please was creating tags like `workos/v6.1.0` instead of `v6.1.0` because `include-component-in-tag` defaults to true. This caused the publish workflow to look for `pkg/workos-workos/v6.1.0.gem` instead of `pkg/workos-6.1.0.gem`. - Set `include-component-in-tag: false` in release-please-config.json - Update VERSION extraction in release.yml to handle both tag formats Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 2 +- release-please-config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d054fb12..56301d88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,6 @@ jobs: - name: Publish to RubyGems run: | - VERSION="${GITHUB_REF_NAME#v}" + VERSION="${GITHUB_REF_NAME##*/v}" bundle exec rake build gem push pkg/workos-${VERSION}.gem --host https://rubygems.org diff --git a/release-please-config.json b/release-please-config.json index 1a8d77de..29926c7e 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,7 +5,8 @@ "release-type": "ruby", "package-name": "workos", "version-file": "lib/workos/version.rb", - "changelog-path": "CHANGELOG.md" + "changelog-path": "CHANGELOG.md", + "include-component-in-tag": false } } }