Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2141: add missed --no-verify-access for lerna publish #2205

Merged
merged 2 commits into from May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/npm/__tests__/npm.test.ts
Expand Up @@ -681,6 +681,7 @@ describe("publish", () => {
"--yes",
"from-package",
"--exact",
"--no-verify-access"
]);
});

Expand All @@ -703,6 +704,7 @@ describe("publish", () => {
"--yes",
"from-package",
false,
"--no-verify-access"
]);
});

Expand All @@ -728,6 +730,7 @@ describe("publish", () => {
false,
"--legacy-auth",
"abcd",
"--no-verify-access"
]);
});

Expand All @@ -752,6 +755,7 @@ describe("publish", () => {
false,
"--contents",
"dist/publish-folder",
"--no-verify-access"
]);
});

Expand Down
1 change: 1 addition & 0 deletions plugins/npm/src/index.ts
Expand Up @@ -1447,6 +1447,7 @@ export default class NPMPlugin implements IPlugin {
...(await getRegistryArgs()),
...getPublishFolderArgs(this.publishFolder, { isMonorepo: true }),
...getLegacyAuthArgs(this.legacyAuth, { isMonorepo: true }),
"--no-verify-access", // permit automation tokens https://github.com/lerna/lerna/issues/2788
]);
} else {
const { private: isPrivate } = await loadPackageJson();
Expand Down