Skip to content

Commit

Permalink
Fix deploying storybook.
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Oct 24, 2024
1 parent 61d1f42 commit 086f950
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/deploy-storybook.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- 18.18

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand All @@ -23,15 +23,10 @@ jobs:
- name: Install yarn
run: npm install -g yarn

- name: Check cache
uses: actions/cache@v2
- uses: bitovi/[email protected]
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Deploy
run: |
yarn
yarn deploy-storybook --ci
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
install_command: yarn install # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
caching: true
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"lint": "eslint './src/**/*.js'",
"clean": "rimraf lib dist es coverage",
"prepublishOnly": "yarn clean && yarn build",
"deploy-storybook": "storybook-to-ghpages",
"cp-cloud": "cp -R ./dist ../cloud-frontend/node_modules/@netdata/charts/",
"to-cloud": "yarn build:cjs && yarn cp-cloud",
"storybook": "storybook dev -p 6006",
Expand Down

0 comments on commit 086f950

Please sign in to comment.