소스 검색

code reorder

Steven Silvester 7 년 전
부모
커밋
a4d6c7fc52
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/patch-release.js

+ 1 - 1
scripts/patch-release.js

@@ -36,13 +36,13 @@ function run(cmd, options) {
 console.log('Patching', target, '...');
 run('npm run build:packages');
 run('npm version patch', { cwd: packagePath });
+run('npm publish', { cwd: packagePath});
 
 // Extract the new package info.
 var data = require(path.join(packagePath, 'package.json'));
 var name = data.name;
 var version = data.version;
 
-run('npm publish', { cwd: packagePath});
 run('npm run update:dependency ' + name + ' ^' + version);
 run('git commit -a -m "Release ' + name + '@' + version + '"');
 run('git tag ' + name + '@' + version);