We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b94c46 commit 536baedCopy full SHA for 536baed
.github/workflows/release-continuous.yml
@@ -1,12 +1,21 @@
1
-name: Publish Any Commit
2
-on: [push, pull_request]
+name: Preview Publish
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ types: [opened, synchronize, labeled]
9
10
permissions: {}
11
12
jobs:
13
preview:
14
+ if: >
15
+ github.repository == 'vitejs/vite-plugin-react' &&
16
+ (github.event_name == 'push' ||
17
+ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview')))
18
runs-on: ubuntu-latest
-
19
steps:
20
- name: Checkout code
21
uses: actions/checkout@v4
0 commit comments