docs: adds the license file #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
push: | |
# TODO: figure out versioning of storybook | |
branches: | |
- main | |
- next | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
# Manual Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Cache Node.js modules | |
id: cache-node-modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow | |
- uses: bitovi/[email protected] | |
with: | |
install_command: npm install # default: npm ci | |
build_command: npm run build-storybook # default: npm run build-storybook | |
path: storybook-static # default: dist/storybook | |
checkout: false # default: true |