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.
2 parents 1e9dc64 + 659bbf2 commit b6cd1d2Copy full SHA for b6cd1d2
.github/workflows/deploy.yml
@@ -3,8 +3,6 @@ name: Node.js CI
3
on:
4
push:
5
branches: [main]
6
- pull_request:
7
- branches: [main]
8
9
jobs:
10
build:
.github/workflows/preview.yml
@@ -0,0 +1,28 @@
1
+name: Deploy PR previews
2
+
+on:
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - synchronize
+ - closed
11
+concurrency: preview-${{ github.ref }}
12
13
+jobs:
14
+ deploy-preview:
15
+ runs-on: ubuntu-20.04
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v2
19
20
+ - name: Install and Build
21
+ run: |
22
+ npm ci
23
+ npm run build
24
25
+ - name: Deploy preview
26
+ uses: rossjrw/pr-preview-action@v1
27
+ with:
28
+ source-dir: ./build/
0 commit comments