chore: add readme hint to install and configure tailwind #25
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: Build and Publish Storybook to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build-storybook | |
- name: 'upload' | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./storybook-static | |
- id: deploy | |
name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v2 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
token: ${{ github.token }} |