瀏覽代碼

fix release script

Daniel Zlotin 7 年之前
父節點
當前提交
82ed894a5d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      scripts/release.js

+ 1
- 1
scripts/release.js 查看文件

36
 }
36
 }
37
 
37
 
38
 function calcNewVersion() {
38
 function calcNewVersion() {
39
-  const currentVersion = exec.execSyncRead(`npm view ${process.env.npm_package_name}@${VERSION_TAG} version`);
39
+  const currentVersion = exec.execSyncRead(`npm view ${process.env.npm_package_name} dist-tags.${VERSION_TAG}`);
40
   console.log(`${VERSION_TAG} version: ${currentVersion}`);
40
   console.log(`${VERSION_TAG} version: ${currentVersion}`);
41
   const packageVersion = process.env.npm_package_version;
41
   const packageVersion = process.env.npm_package_version;
42
   console.log(`package version: ${packageVersion}`);
42
   console.log(`package version: ${packageVersion}`);