Skip to content

Commit 035b73d

Browse files
committed
Run deploy script inside github page environment
1 parent 76cfe62 commit 035b73d

File tree

3 files changed

+4
-54
lines changed

3 files changed

+4
-54
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ permissions:
1212

1313
jobs:
1414
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.build-publish.outputs.page_url }}
1518
name: Deploy Demo App and Storybook
1619
runs-on: ubuntu-latest
1720
env:
@@ -68,6 +71,7 @@ jobs:
6871
echo $result
6972
echo ::set-output name=need_deploy::$result
7073
- name: Publish Storybook Documentation
74+
id: build-publish
7175
if: startsWith(steps.need_deploy.outputs.need_deploy, 'Deploy storybook')
7276
uses: bitovi/[email protected]
7377
with:

package-lock.json

Lines changed: 0 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"@testing-library/jest-dom": "^5.16.5",
6868
"@testing-library/react": "^14.0.0",
6969
"@testing-library/user-event": "^14.4.3",
70-
"@types/classnames": "^2.3.1",
7170
"@types/jest": "^25.2.1",
7271
"@types/lodash.isequal": "^4.5.5",
7372
"@types/puppeteer": "^5.4.3",
@@ -76,7 +75,6 @@
7675
"@types/react-test-renderer": "^18.0.0",
7776
"@types/resize-observer-browser": "^0.1.3",
7877
"@types/styled-system": "^5.1.16",
79-
"@types/testing-library__react": "^10.2.0",
8078
"@types/throttle-debounce": "^2.1.0",
8179
"@types/uuid": "^7.0.3",
8280
"@typescript-eslint/eslint-plugin": "^4.33.0",

0 commit comments

Comments
 (0)