chore: improve release scripts (#4933)
- use the latest git tag as the previous version - restore/bump the version on master in `bump-prettier.js` - use `stdio: "inherit"` for `npm publish` so that we could input the OTP - do not use `--runInBand` for local `test:dist` - remove `Updating integration snapshots` - remove `Attach all files in dist/ folder`
This commit is contained in:
7 files changed
+57
-26
No files matched your search
@@ -36,7 +36,7 @@ function writeChangelog({ version, previousVersion, releaseNotes }) {
|
||||
const newEntry = dedent`
|
||||
# ${version}
|
||||
|
||||
[link](https://github.com/prettier/prettier/compare/${previousVersion}...${version})
|
||||
[diff](https://github.com/prettier/prettier/compare/${previousVersion}...${version})
|
||||
|
||||
${releaseNotes}
|
||||
`;
|
||||
@@ -51,7 +51,7 @@ module.exports = async function({ version, previousVersion }) {
|
||||
writeChangelog({
|
||||
version,
|
||||
previousVersion,
|
||||
releaseNotes: `- [Release Notes](https://prettier.io/${blogPost.path})`
|
||||
releaseNotes: `🔗 [Release Notes](https://prettier.io/${blogPost.path})`
|
||||
});
|
||||
if (fs.existsSync(blogPost.file)) {
|
||||
// Everything is fine, this step is finished
|
||||
|
||||
Reference in new issue
Block a user