Skip to content

Commit

Permalink
feat: auto deploy storybook to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
herleraja committed May 24, 2024
1 parent 5343724 commit 49b8aef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- "master"

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: build-publish
uses: bitovi/[email protected]
with:
path: storybook-static
install_command: yarn install
build_command: yarn build-storybook
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "edc-device-catalog-search",
"name": "edc-device-library-search",
"version": "9.0.0",
"private": true,
"homepage": "https://github.ibm.com/omnio/edgeconfig-device-search.git",
"homepage": "https://github.com/ibm-watson-iot/maximo-asset-monitor-device-library-search.git",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down Expand Up @@ -66,4 +66,4 @@
"typescript": "^5.4.5",
"web-vitals": "^3.5.2"
}
}
}
2 changes: 1 addition & 1 deletion src/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default function Search() {
<StatefulTable
id="search-table"
data-test="search-table"
secondaryTitle="Device library search"
secondaryTitle="Maximo Asset Monitor : Device library search"
columns={columns}
data={tabledata}
actions={{
Expand Down

0 comments on commit 49b8aef

Please sign in to comment.