Skip to content

Commit b6cd1d2

Browse files
authored
Merge pull request #4 from chvmvd/preview
PRのプレビューをつくるようにした
2 parents 1e9dc64 + 659bbf2 commit b6cd1d2

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Node.js CI
33
on:
44
push:
55
branches: [main]
6-
pull_request:
7-
branches: [main]
86

97
jobs:
108
build:

.github/workflows/preview.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy PR previews
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
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

Comments
 (0)