Update release script
This commit is contained in:
1 parent
20c7a5ab9a
commit
6d0607cebf
4 files changed
+6
-6
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"));
|
||||
};
|
||||
@@ -68,5 +68,5 @@ module.exports = async function({ version, previousVersion }) {
|
||||
}
|
||||
|
||||
await waitForEnter();
|
||||
await execa("yarn", ["lint-docs", "--fix"]);
|
||||
await execa("yarn", ["lint:prettier", "--write"]);
|
||||
};
|
||||
Reference in new issue
Block a user