]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: upload-built-packages
authorEvan You <evan@vuejs.org>
Mon, 12 Aug 2024 00:08:18 +0000 (08:08 +0800)
committerEvan You <evan@vuejs.org>
Mon, 12 Aug 2024 00:08:18 +0000 (08:08 +0800)
.github/workflows/publish-commit.yml

index 3b9212309d813d993376227ea69626f2536453b1..61bdf70171b8e02a861790544c3d5016d6acc882 100644 (file)
@@ -1,9 +1,10 @@
-name: publish-commit
+# upload built packages as artifacts for faster ecosystem-ci
+name: upload-built-packages
 
 on:
   workflow_run:
     workflows: ['ci']
-    branches: [main, minor, test-publish]
+    branches: [main, minor]
     types:
       - completed
 
@@ -25,15 +26,17 @@ jobs:
         uses: actions/setup-node@v4
         with:
           node-version-file: '.node-version'
-          registry-url: 'https://npm.pkg.github.com'
+          registry-url: 'https://registry.npmjs.org'
           cache: 'pnpm'
 
       - name: Install deps
         run: pnpm install
 
-      - name: Build and publish
-        id: publish
-        run: |
-          pnpm release 0.0.0-${{ github.event.workflow_run.head_commit.id }} --tag ${{ github.event.workflow_run.head_branch }} --registry https://npm.pkg.github.com --publishOnly
-        env:
-          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      - name: Build
+        run: pnpm build --withTypes
+
+      - name: Upload
+        uses: actions/upload-artifact@v4
+        with:
+          name: packages
+          path: packages/**/dist/*