Update release instructions (#18264)
This commit is contained in:
1 parent
d7fe2da97d
commit
335c6f1081
1 file changed
-35
@@ -14,13 +14,6 @@ export async function isVersionReleased(version) {
|
||||
return versionExists;
|
||||
}
|
||||
|
||||
async function checkBotPermission() {
|
||||
const response = await fetch("https://registry.npmjs.org/prettier/");
|
||||
const { maintainers } = await response.json();
|
||||
|
||||
return maintainers.some(({ name }) => name === "prettier-bot");
|
||||
}
|
||||
|
||||
const sleep = () =>
|
||||
new Promise((resolve) => {
|
||||
setTimeout(resolve, 30_000);
|
||||
@@ -31,34 +24,6 @@ export default async function waitForBotRelease({ dry, version, next }) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(await checkBotPermission())) {
|
||||
console.log(
|
||||
outdent`
|
||||
1. Go to ${styleText.green.underline(
|
||||
"https://www.npmjs.com/package/prettier/access",
|
||||
)}
|
||||
2. Add "${styleText.yellow("prettier-bot")}" as prettier package maintainer.
|
||||
`,
|
||||
);
|
||||
|
||||
await waitForEnter();
|
||||
}
|
||||
|
||||
console.log(
|
||||
outdent`
|
||||
1. Go to ${styleText.green.underline(
|
||||
"https://www.npmjs.com/package/prettier/access",
|
||||
)}
|
||||
2. Make sure "${styleText.yellow(
|
||||
"Publishing access",
|
||||
)}" section is set to "${styleText.yellow(
|
||||
"Require two-factor authentication or an automation or granular access token",
|
||||
)}".
|
||||
`,
|
||||
);
|
||||
|
||||
await waitForEnter();
|
||||
|
||||
console.log(
|
||||
outdent`
|
||||
1. Go to ${styleText.green.underline(
|
||||
|
||||
Reference in new issue
Block a user