Skip to content

Commit

Permalink
Remove dependency on @storybook/storybook-deployer (#5144)
Browse files Browse the repository at this point in the history
  • Loading branch information
emlynmac authored Sep 9, 2024
1 parent 31b6977 commit a167bb5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 69 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,20 @@ jobs:
- name: Run Storybook tests
run: rush test -o storybook

- name: Deploy Storybook
- name: Copy .env values
# storybook requires the env vars to be in a .env file for access in the manager.ts
run: |
echo TELEMETRY_INSTRUMENTATION_KEY=${{ secrets.TELEMETRY_INSTRUMENTATION_KEY }} > .env
npm run deploy-storybook -- --ci
working-directory: ./packages/storybook
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

- name: Upload Storybook GH Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./packages/storybook/storybook-static

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 0 additions & 13 deletions common/config/rush/pnpm-lock.yaml

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

13 changes: 0 additions & 13 deletions common/config/rush/variants/stable/pnpm-lock.yaml

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

2 changes: 0 additions & 2 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"build:dev": "cross-env NODE_ENV=development node ./scripts/build.mjs",
"clean": "",
"start": "cross-env NODE_ENV=development node ./scripts/start.mjs",
"deploy-storybook": "node ./scripts/deploy.mjs",
"test": "node ./scripts/test.mjs",
"test:ci-coverage": "echo skip",
"test:coverage": "rushx test --coverage --coverageReporters=lcov",
Expand Down Expand Up @@ -61,7 +60,6 @@
"@storybook/manager-webpack5": "6.5.16",
"@storybook/node-logger": "^6.5.14",
"@storybook/react": "^6.5.14",
"@storybook/storybook-deployer": "^2.8.16",
"@storybook/theming": "^6.5.14",
"@testing-library/jest-dom": "^6.4.8",
"@types/jest": "^29.5.11",
Expand Down
20 changes: 0 additions & 20 deletions packages/storybook/scripts/deploy.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/storybook8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"build:dev-s8": "cross-env NODE_ENV=development node ./scripts/build.mjs",
"clean": "",
"start": "cross-env NODE_ENV=development node ./scripts/start.mjs",
"deploy-storybook": "node ./scripts/deploy.mjs",
"storybook": "storybook",
"test": "echo Storybook 8 test via 'test-s8' target",
"test-s8": "node ./scripts/test.mjs",
Expand Down Expand Up @@ -66,7 +65,6 @@
"@storybook/preview-api": "^8.2.6",
"@storybook/react": "^8.2.6",
"@storybook/react-webpack5": "^8.2.6",
"@storybook/storybook-deployer": "^2.8.16",
"@storybook/test-runner": "^0.17.0",
"@storybook/theming": "^8.2.6",
"@testing-library/jest-dom": "^6.4.8",
Expand Down
17 changes: 0 additions & 17 deletions packages/storybook8/scripts/deploy.mjs

This file was deleted.

0 comments on commit a167bb5

Please sign in to comment.