]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
ci: continous release
authorEduardo San Martin Morote <posva13@gmail.com>
Sun, 20 Oct 2024 22:17:13 +0000 (07:17 +0900)
committerEduardo San Martin Morote <posva13@gmail.com>
Sun, 20 Oct 2024 22:17:16 +0000 (07:17 +0900)
.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..271a46e
--- /dev/null
@@ -0,0 +1,44 @@
+name: Publish Any Commit
+
+on:
+  pull_request:
+    branches: main
+    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
+    - uses: pnpm/action-setup@v4
+    - uses: actions/setup-node@v4
+      with:
+        node-version: lts/*
+        cache: pnpm
+
+    - name: Install
+      run: pnpm install --frozen-lockfile
+
+    - name: Build
+      run: pnpm -C packages/router build
+
+    - name: Build DTS
+      run: pnpm -C packages/router build:dts
+
+    - name: Release
+      run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'