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:
Ika authored and GitHub committed 2018-08-08 23:49:22 +08:00
1 parent 4d2f224919
commit 8973caf4bb
7 files changed
+57 -26

No files matched your search

+2 -2
View File
@@ -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