Skip to content

Commit

Permalink
Merge pull request #2205 from karpoff/fix-automation-token
Browse files Browse the repository at this point in the history
#2141: add missed --no-verify-access for lerna publish
  • Loading branch information
hipstersmoothie committed May 27, 2022
2 parents 8d82377 + 55510a7 commit 3e1cd5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 3e1cd5c

Please sign in to comment.