Skip to content

Commit

Permalink
fix: publish tag with missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeents committed Nov 27, 2022
1 parent d3aa0a9 commit b32f8f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ export class Yarn {
}

async publish(tag?: string): Promise<void> {
await this.useExeca(`npm publish ${tag ? tag : ''}`);
const tagToPublish = tag ? `--tag ${tag}` : '';
await this.useExeca(`npm publish ${tagToPublish}`);
}

async useExeca(args: string) {
Expand Down

0 comments on commit b32f8f2

Please sign in to comment.