Skip to content

Commit

Permalink
fix: fix deployment for storybook 7 (#973)
Browse files Browse the repository at this point in the history
Closes D2IQ-97583
  • Loading branch information
clintonmedbery authored Jun 12, 2023
1 parent e10af7c commit 57ae60e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 167 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,3 @@ jobs:
run: npm run dist
- name: Unit Tests 🧪
run: npm test
- name: Semantic Release ⬆️
if: github.ref == 'refs/heads/main'
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Storybook and Deploy 🚀
if: github.ref == 'refs/heads/main'
run: |
npm run build:storybook
npm run deploy:storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Dependencies 🔧
run: npm install
- name: Semantic Release ⬆️
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Storybook 📚
run: |
npm run build:storybook
- name: Deploy Storybook 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
token: ${{ secrets.GITHUB_TOKEN }}

150 changes: 0 additions & 150 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"build:svg": "node ./packages/icons/scripts/build.js",
"clean": "rimraf dist",
"create:component": "./scripts/create-component",
"deploy:storybook": "storybook-to-ghpages",
"prestart": "npm run build:design-tokens && npm run build:svg",
"pretest": "npm run build:design-tokens && npm run build:svg",
"predist": "npm run clean && npm run build:design-tokens && npm run build:svg",
Expand Down Expand Up @@ -88,7 +87,6 @@
"@storybook/react": "7.0.18",
"@storybook/react-webpack5": "7.0.18",
"@storybook/source-loader": "7.0.18",
"@storybook/storybook-deployer": "2.8.16",
"@storybook/test-runner": "0.10.0",
"@storybook/theming": "7.0.18",
"@svgr/webpack": "7.0.0",
Expand Down

0 comments on commit 57ae60e

Please sign in to comment.