Skip to content

Commit e5d08cf

Browse files
committed
chore: Update preview
1 parent 2531be5 commit e5d08cf

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.fatherrc.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
export default {
2-
cjs: 'babel',
3-
esm: { type: 'babel', importLibToEs: true },
4-
preCommit: {
5-
eslint: true,
6-
prettier: true,
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
platform: 'browser',
5+
cjs: { output: 'lib' },
6+
esm: {
7+
output: 'es',
8+
alias: { 'rc-util/lib': 'rc-util/es' },
79
},
8-
runtimeHelpers: true,
9-
};
10+
});

.github/workflows/preview.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🔂 Surge PR Preview
2+
3+
on: [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+
id: preview_step
12+
with:
13+
surge_token: ${{ secrets.SURGE_TOKEN }}
14+
github_token: ${{ secrets.GITHUB_TOKEN }}
15+
dist: .doc
16+
build: |
17+
npm install
18+
npm run docs:build
19+
- name: Get the preview_url
20+
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"

0 commit comments

Comments
 (0)