Skip to content

Commit 2ae8895

Browse files
authored
chore: run PR preview on pull_request (#1677)
1 parent 5c81f9e commit 2ae8895

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/preview.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 🔂 Surge PR Preview
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
preview:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: afc163/surge-preview@v1
11+
with:
12+
surge_token: ${{ secrets.SURGE_TOKEN }}
13+
github_token: ${{ secrets.GITHUB_TOKEN }}
14+
build: |
15+
yarn
16+
yarn site:build
17+
dist: public

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"tslib": "^1.13.0"
6363
},
6464
"devDependencies": {
65-
"@antv/gatsby-theme-antv": "^1.0.0-beta.4",
65+
"@antv/gatsby-theme-antv": "^1.0.0-beta.8",
6666
"@babel/core": "^7.10.4",
6767
"@babel/preset-env": "^7.10.4",
6868
"@commitlint/cli": "^8.2.0",
@@ -136,4 +136,4 @@
136136
}
137137
],
138138
"license": "MIT"
139-
}
139+
}

0 commit comments

Comments
 (0)