Added comprehensive GitHub Pages deployment for Storybook and test coverage reports with automated deployment via GitHub Actions.
# GitHub Actions workflow
git add .github/workflows/deploy-pages.yml
# Deployment scripts
git add scripts/deploy-gh-pages.js
# Documentation
git add GITHUB-PAGES-DEPLOYMENT.md
git add GITHUB-PAGES-SETUP-SUMMARY.md
# Updated files
git add package.json
git add README.md
git add CHANGELOG.mdgit commit -m "feat(deployment): add GitHub Pages deployment for Storybook and coverage
- Add GitHub Actions workflow for automated deployment on push to main
- Create deployment script combining Storybook and coverage reports
- Add beautiful landing page with live stats and navigation
- Add deployment scripts: deploy:all, storybook:deploy, coverage:deploy
- Update README with live demo links and coverage badges
- Add comprehensive deployment guide
BREAKING CHANGE: None (deployment infrastructure only)
Deployed URLs (after push):
- Landing: https://crashbytes.github.io/react-version-compare/
- Storybook: https://crashbytes.github.io/react-version-compare/storybook/
- Coverage: https://crashbytes.github.io/react-version-compare/coverage/"# Push to main
git push origin main
# Enable GitHub Pages (one-time setup)
# 1. Go to repository Settings > Pages
# 2. Source: Select "GitHub Actions"
# 3. Save
# Wait 2-3 minutes for deployment
# Check Actions tab for statusAfter deployment completes:
- Landing page loads: https://crashbytes.github.io/react-version-compare/
- Storybook works: https://crashbytes.github.io/react-version-compare/storybook/
- Coverage displays: https://crashbytes.github.io/react-version-compare/coverage/
- All links functional
- Stats show correctly (99.31%, 124 tests, 100%)
- Mobile responsive
- GitHub badge shows green
If you want to deploy immediately without waiting for GitHub Actions:
# Build everything and deploy manually
npm run deploy:all
# Or deploy individually
npm run test:coverage # Generate coverage
npm run build-storybook # Build Storybook
npm run deploy:combined # Deploy bothAfter successful deployment:
- ✅ Update repository description with link
- ✅ Share Storybook link in npm package description
- ✅ Add deployment status badge (optional)
- ✅ Tweet/share the live demos
- ✅ GitHub Actions workflow shows green checkmark
- ✅ All 3 sites accessible via URLs
- ✅ Coverage report shows 99.31%
- ✅ Storybook interactive demos work
- ✅ Landing page displays correctly
- ✅ Mobile responsive design works
Ready to commit and deploy! 🚀