Browse Source

change the release script

tags/2.4.0
Caven Chen 4 years ago
parent
commit
0fdd8267c2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/release.js

+ 2
- 2
scripts/release.js View File

@@ -19,11 +19,11 @@ const count = pkgs.length
pkgs.forEach(async (item, index) => {
await fse.exists(
path.resolve(__dirname, '..', `packages/${item}/dist`),
exists => {
async exists => {
if (exists) {
shell.cd(path.resolve(__dirname, '..', `packages/${item}`))
try {
let code = shell.exec(
let code = await shell.exec(
`yarn publish --new-version ${version} --access public`
).code
if (code !== 0) {

Loading…
Cancel
Save