diff --git a/scripts/releases-ci/publish-updated-packages.js b/scripts/releases-ci/publish-updated-packages.js index 5efa6e7aa1d1bd..57580df64b4fc6 100644 --- a/scripts/releases-ci/publish-updated-packages.js +++ b/scripts/releases-ci/publish-updated-packages.js @@ -10,7 +10,6 @@ */ const {PUBLISH_PACKAGES_TAG} = require('../monorepo/constants'); -// $FlowExpectedError[untyped-import] const {publishPackage} = require('../npm-utils'); const {getPackages} = require('../releases/utils/monorepo'); const {parseArgs} = require('@pkgjs/parseargs'); @@ -29,7 +28,7 @@ async function main() { values: {help}, } = parseArgs(config); - if (help != null) { + if (help) { console.log(` Usage: node ./scripts/releases/publish-updated-packages.js @@ -96,7 +95,7 @@ async function publishUpdatedPackages() { console.log('Done ✅'); console.log('Publishing updated packages to npm'); - const tags /*: Array */ = []; + const tags = getTagsFromCommitMessage(commitMessage); const failedPackages = []; for (const packageName of packagesToUpdate) { @@ -131,7 +130,7 @@ function runPublish( tags /*: Array */, ) { const result = publishPackage(packagePath, { - tag: null, + tags, otp: NPM_CONFIG_OTP, });