Skip to content

Fix runYarn function in release script#15200

Merged
sosukesuzuki merged 2 commits intoprettier:mainfrom
sosukesuzuki:fix-release-script-yarn
Aug 3, 2023
Merged

Fix runYarn function in release script#15200
sosukesuzuki merged 2 commits intoprettier:mainfrom
sosukesuzuki:fix-release-script-yarn

Conversation

@sosukesuzuki
Copy link
Copy Markdown
Contributor

@sosukesuzuki sosukesuzuki commented Aug 2, 2023

Description

Currently following code will fail:

runYarn("install");

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@sosukesuzuki
Copy link
Copy Markdown
Contributor Author

this is broken. I'll fix later.

Comment thread scripts/release/utils.js Outdated

try {
return await execa("yarn", ["--silent", "run", ...args], options);
return await execa("yarn", [...args, "--silent"], options);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove --silent?

You can also release with --skip-dependencies-install https://github.com/prettier/prettier/tree/main/scripts/release#flags

@sosukesuzuki sosukesuzuki merged commit c3d53dc into prettier:main Aug 3, 2023
@sosukesuzuki sosukesuzuki deleted the fix-release-script-yarn branch August 3, 2023 05:45
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 15, 2024
* Maybe it works

* Remove `--silent`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants