scripts/release/steps/post-publish-steps.js
async function checkSchema() {
  const schema = await execa.stdout("node", ["scripts/generate-schema.js"]);
  const remoteSchema = await logPromise(
    "Checking current schema in SchemaStore",
    fetch(RAW_URL)
      .then(r => r.text())
      .then(t => t.trim())
  );

  if (schema === remoteSchema) {
    return;
  }

  return dedent(chalk`
    {bold.underline The schema in {yellow SchemaStore} needs an update.}
    - Open {cyan.underline ${EDIT_URL}}
    - Run {yellow node scripts/generate-schema.js} and copy the new schema
    - Paste it on GitHub interface
    - Open a PR
  `);
}
async function checkSchema() {
  const schema = await execa.stdout("node", ["scripts/generate-schema.js"]);
  const remoteSchema = await logPromise(
    "Checking current schema in SchemaStore",
    fetch(RAW_URL)
      .then(r => r.text())
      .then(t => t.trim())
  );

  if (schema === remoteSchema) {
    return;
  }

  return dedent(chalk`
    {bold.underline The schema in {yellow SchemaStore} needs an update.}
    - Open {cyan.underline ${EDIT_URL}}
    - Run {yellow node scripts/generate-schema.js} and copy the new schema
    - Paste it on GitHub interface
    - Open a PR
  `);
}
async function checkSchema ( ) { const schema = await execa . stdout ( "node" , [ "scripts/generate-schema.js" ] ) ; const remoteSchema = await logPromise ( "Checking current schema in SchemaStore" , fetch ( RAW_URL ) . then ( r => r . text ( ) ) . then ( t => t . trim ( ) ) ) ; if ( schema === remoteSchema ) { return ; } return dedent ( chalk ` ${ EDIT_URL } ` ) ; }
Any optional or manual step can be warned in this script.
Any optional or manual step can be warned in this script .