瀏覽代碼

workflow: fix release script for pnpm 7 [ci skip]

Evan You 3 年之前
父節點
當前提交
739af3da60
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/release.js

+ 2 - 2
scripts/release.js

@@ -80,7 +80,7 @@ async function main() {
   step('\nRunning tests...')
   if (!skipTests && !isDryRun) {
     await run(bin('jest'), ['--clearCache'])
-    await run('pnpm', ['test', '--', '--bail'])
+    await run('pnpm', ['test', '--bail'])
   } else {
     console.log(`(skipped)`)
   }
@@ -92,7 +92,7 @@ async function main() {
   // build all packages with types
   step('\nBuilding all packages...')
   if (!skipBuild && !isDryRun) {
-    await run('pnpm', ['run', 'build', '--', '--release'])
+    await run('pnpm', ['run', 'build', '--release'])
     // test generated dts files
     step('\nVerifying type declarations...')
     await run('pnpm', ['run', 'test-dts-only'])