File tree Expand file tree Collapse file tree 2 files changed +29
-8
lines changed
Expand file tree Collapse file tree 2 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 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+ } ) ;
Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments