Skip to content

Commit

Permalink
Fix skipping publish step (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Jun 11, 2023
1 parent 9f9ee6e commit 51dcc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/index.js
Expand Up @@ -12,7 +12,7 @@ import {asyncExitHook} from 'exit-hook';
import logSymbols from 'log-symbols';
import prerequisiteTasks from './prerequisite-tasks.js';
import gitTasks from './git-tasks.js';
import publish from './npm/publish.js';
import publish, {getPackagePublishArguments} from './npm/publish.js';
import enable2fa from './npm/enable-2fa.js';
import releaseTaskHelper from './release-task-helper.js';
import * as util from './util.js';
Expand Down Expand Up @@ -219,7 +219,7 @@ const np = async (input = 'patch', options, {pkg, rootDir}) => {
title: `Publishing package using ${pkgManagerName}`,
skip() {
if (options.preview) {
const args = publish.getPackagePublishArguments(options);
const args = getPackagePublishArguments(options);
return `[Preview] Command not executed: ${pkgManager} ${args.join(' ')}.`;
}
},
Expand Down

0 comments on commit 51dcc2d

Please sign in to comment.