👷 [RUM-15055] fix release / publish pipeline issues from v0.1.2#87
Merged
Conversation
- scan git log instead of `git describe` to find last release commit (tags aren't ancestors of main) - update RELEASE_COMMIT_RE to match squash-merged PR titles like `v0.1.1 (#80)`
fe52767 to
ecf65ee
Compare
cdn34dd
approved these changes
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Two issues discovered after the v0.1.2 release:
NODE_AUTH_TOKENsecret seems to be present, preventing the OIDC Trusted Publishers exchange from running.git describe --tagswas failing to find the last release because release tags are created on the release branch and are not ancestors ofmain. This caused the changelog to include all commits instead of only those since the last release. Additionally, squash-merged release PRs produce titles likev0.1.1 (#80)which the regex didn't match.Changes
NODE_AUTH_TOKENin the publish and dry-run steps so npm falls through to the OIDC Trusted Publishers exchange instead of using the invalid org secretgit describe --tagswith a log scan to find the last release commit, making it resilient to tags not being ancestors ofmainRELEASE_COMMIT_REto match squash-merged PR titles (e.g.v0.1.1 (#80))Test instructions
dry_run: truefrom a tag — the OIDC check step should succeed without falling back to the org tokennode scripts/generate-changelog.ts --dry-runlocally and verify the changelog only includes commits since the last releaseChecklist