diff --git a/scripts/release.ts b/scripts/release.ts index 03c1065d8d..f70f31a418 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -18,7 +18,8 @@ function getCurrentBranch() { function readLastPublishCommit() { const commitHash = getCurrentCommit(); const commitMessage = sh('git log -1 --pretty=%B'); - const tags = commitMessage.match(/@.*$/gm); + // Only make tags for the actual design system packages + const tags = commitMessage.match(/@cmsgov\/(?:design-system@|ds-).*$/gm); if (!tags) { throw Error('The previous commit was not a publish commit. Cannot read tags!');