Skip to content

dgibson666 is deploying the CBP Design System documentation packages to Github Pages #12

dgibson666 is deploying the CBP Design System documentation packages to Github Pages

dgibson666 is deploying the CBP Design System documentation packages to Github Pages #12

# Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/deploy-pages@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
# Workflow name
name: Build and Publish Storybook to GitHub Pages
run-name: ${{ github.actor }} is deploying the CBP Design System documentation packages to Github Pages
# Event for the workflow to run on
on:
push:
branches:
- 'develop'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v3
# Set up Node
- uses: actions/setup-node@v3
with:
node-version: '18.x'
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1
with:
install_command: npm run install-wc-package # default: npm ci
build_command: npm run build-wc-package # default: npm run build-storybook
path: .public/web-components-sb # default: dist/storybook
checkout: false # default: true