Skip to content

Commit

Permalink
fix(plugin-release): don't return early when there are no workspaces …
Browse files Browse the repository at this point in the history
…to tag
  • Loading branch information
kherock committed Aug 4, 2021
1 parent f687f76 commit e24c129
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/plugin-release/sources/commands/releaseCommit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ export default class ReleaseCommand extends BaseCommand {
const taggableWorkspaces = project.topLevelWorkspace.getRecursiveWorkspaceChildren()
.filter(workspace => !workspace.manifest.private && !tagList.has(structUtils.stringifyLocator(workspace.locator)));

if (!taggableWorkspaces.length) {
if (!taggableWorkspaces.length)
report.reportWarning(MessageName.UNNAMED, `There are no workspaces to tag`);
return;
}


const newWorkspaceVersions = taggableWorkspaces
.map(({locator, manifest}) => `${structUtils.stringifyIdent(locator)}: v${manifest.version}`)
Expand Down

0 comments on commit e24c129

Please sign in to comment.