]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
ci: add pkr.pr.new (#2747)
authorxiaomo <wegi866@gmail.com>
Fri, 6 Sep 2024 14:32:55 +0000 (07:32 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 14:32:55 +0000 (16:32 +0200)
.github/workflows/pkg.pr.new.yml [new file with mode: 0644]

diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml
new file mode 100644 (file)
index 0000000..3393c5a
--- /dev/null
@@ -0,0 +1,44 @@
+name: Publish Any Commit
+
+on:
+  pull_request:
+    branches: v2
+    paths-ignore:
+    - 'packages/docs/**'
+    - 'packages/playground/**'
+
+  push:
+    branches:
+    - '**'
+    tags:
+    - '!**'
+    paths-ignore:
+    - 'packages/docs/**'
+    - 'packages/playground/**'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+
+    - run: corepack enable
+
+    - name: Set node
+      uses: actions/setup-node@v4
+      with:
+        node-version: lts/*
+        cache: pnpm
+
+    - name: Install
+      run: pnpm install
+
+    - name: Build
+      run: pnpm build
+
+    - name: Release
+      run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'