瀏覽代碼

chore: Use lerna exec in publish workflow

Attempting to see if npm publish will work
Michael Bromley 1 月之前
父節點
當前提交
b76b0cc013
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/publish_to_npm.yml

+ 3 - 3
.github/workflows/publish_to_npm.yml

@@ -132,15 +132,15 @@ jobs:
       # Publish to npm with appropriate dist-tag
       # Publish to npm with appropriate dist-tag
       - name: Publish to NPM (release)
       - name: Publish to NPM (release)
         if: matrix.type == 'release'
         if: matrix.type == 'release'
-        run: npx lerna publish from-package --yes --loglevel silly
+        run: npx lerna exec --no-private -- npm publish --access public
 
 
       - name: Publish to NPM (master-nightly)
       - name: Publish to NPM (master-nightly)
         if: matrix.type == 'master-nightly' && steps.commit_check.outputs.should_publish == 'true'
         if: matrix.type == 'master-nightly' && steps.commit_check.outputs.should_publish == 'true'
-        run: npx lerna publish from-package --yes --dist-tag master --no-git-reset --loglevel silly
+        run: npx lerna exec --no-private -- npm publish --access public --tag master
 
 
       - name: Publish to NPM (minor-nightly)
       - name: Publish to NPM (minor-nightly)
         if: matrix.type == 'minor-nightly' && steps.commit_check.outputs.should_publish == 'true'
         if: matrix.type == 'minor-nightly' && steps.commit_check.outputs.should_publish == 'true'
-        run: npx lerna publish from-package --yes --dist-tag minor --no-git-reset --loglevel silly
+        run: npx lerna exec --no-private -- npm publish --access public --tag minor
 
 
       - name: Skip publish (no new commits)
       - name: Skip publish (no new commits)
         if: matrix.type != 'release' && steps.commit_check.outputs.should_publish == 'false'
         if: matrix.type != 'release' && steps.commit_check.outputs.should_publish == 'false'