Skip to content

Commit dd24290

Browse files
committed
wip
1 parent 90e3e0c commit dd24290

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy-signals-example-to-github-pages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ jobs:
2929
restore-keys: |
3030
${{ runner.os }}-turbo-
3131
- run: yarn turbo run --filter='./packages/signals/signals-example...' build
32-
- name: Building App
33-
run: yarn build
3432
- name: Deploy with gh-pages
33+
working-directory: packages/signals/signals-example
3534
run: |
3635
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
37-
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
36+
yarn deploy
3837
env:
3938
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
working-directory: packages/signals/signals-example

packages/signals/signals/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"eslint": "yarn run -T eslint",
4040
"concurrently": "yarn run -T concurrently",
4141
"jest": "yarn run -T jest",
42-
"webpack": "yarn run -T webpack"
42+
"webpack": "yarn run -T webpack",
43+
"deploy": "gh-pages -d dist -s public/index.html"
4344
},
4445
"dependencies": {
4546
"@segment/analytics-generic-utils": "1.2.0",
@@ -60,6 +61,7 @@
6061
"@internal/config-webpack": "workspace:^",
6162
"@internal/test-helpers": "workspace:^",
6263
"fake-indexeddb": "^6.0.0",
63-
"node-fetch": "^2.6.7"
64+
"node-fetch": "^2.6.7",
65+
"gh-pages": "^4.0.0"
6466
}
6567
}

0 commit comments

Comments
 (0)