Update release script

This commit is contained in:
Georgii Dolzhykov committed 2020-03-21 21:02:18 +02:00
1 parent 20c7a5ab9a
commit 6d0607cebf
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
node ./scripts/release/release.js --version NEW_VERSION
```
The script its own `package.json` so we can reinstall the root's `node_modules/` while making the release.
The script has its own `package.json` so we can reinstall the root's `node_modules/` while making the release.
## Credits
+2 -2
View File
@@ -5,8 +5,8 @@ const semver = require("semver");
const { logPromise, readJson, writeJson } = require("../utils");
async function format() {
await execa("yarn", ["lint", "--fix"]);
await execa("yarn", ["lint-docs", "--fix"]);
await execa("yarn", ["lint:eslint", "--fix"]);
await execa("yarn", ["lint:prettier", "--write"]);
}
async function commit(version) {
+2 -2
View File
@@ -3,7 +3,7 @@
const { runYarn, logPromise } = require("../utils");
module.exports = async function() {
await logPromise("Running linter", runYarn("lint"));
await logPromise("Running linter on docs", runYarn("lint-docs"));
await logPromise("Running linter", runYarn("lint:eslint"));
await logPromise("Running linter on docs", runYarn("lint:prettier"));
await logPromise("Running tests", runYarn("test"));
};
+1 -1
View File
@@ -68,5 +68,5 @@ module.exports = async function({ version, previousVersion }) {
}
await waitForEnter();
await execa("yarn", ["lint-docs", "--fix"]);
await execa("yarn", ["lint:prettier", "--write"]);
};