From cb77cbc784272e041801efa21b97ca77e0fecbb3 Mon Sep 17 00:00:00 2001 From: shipjs Date: Thu, 3 Sep 2020 14:51:09 +0200 Subject: [PATCH] fix(setup): add --tag to publish command in generated config --- packages/shipjs/src/step/setup/addShipConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shipjs/src/step/setup/addShipConfig.js b/packages/shipjs/src/step/setup/addShipConfig.js index 4451a8f6..0a5ca363 100644 --- a/packages/shipjs/src/step/setup/addShipConfig.js +++ b/packages/shipjs/src/step/setup/addShipConfig.js @@ -22,8 +22,8 @@ export default async ({ const config = { ...(isScoped && isPublic && { - publishCommand: ({ defaultCommand }) => - `${defaultCommand} --access public`, + publishCommand: ({ defaultCommand, tag }) => + `${defaultCommand} --access public --tag ${tag}`, }), ...(useMonorepo && { monorepo: {