Skip to content

Commit 207b9f5

Browse files
committed
deploy site from parent
1 parent da5a76a commit 207b9f5

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/deploy-site.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,9 @@ jobs:
3838
- name: Install yarn
3939
run: npm install -g yarn
4040
- name: Install dependencies
41-
working-directory: ./example
42-
run: |
43-
sed -i '/link:/d' package.json
44-
yarn add react-fluid-table
45-
yarn install
41+
run: yarn install
4642
- name: Build
47-
working-directory: ./example
48-
run: yarn build
43+
run: yarn site:build
4944
- name: Setup Pages
5045
uses: actions/configure-pages@v3
5146
- name: Upload artifact

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
"scripts": {
2828
"build": "rm -rf dist ||: && rollup -c --environment BUILD:production",
2929
"start": "rollup -c -w --environment BUILD:development",
30-
"prepare": "yarn run build",
31-
"predeploy": "cd example && yarn install && yarn run build",
32-
"deploy": "gh-pages -d example/build"
30+
"site:build": "cd example && yarn install && yarn run build"
3331
},
3432
"peerDependencies": {
3533
"react": ">=16.8.0",

0 commit comments

Comments
 (0)