Merge pull request #17 from jtiala/publish-each-components-css #57
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: Publish Storybook | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/configure-pages@v3 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
registry-url: "https://registry.npmjs.org" | |
- run: pnpm install | |
- run: pnpm run build | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "apps/docs/storybook-static" | |
- id: deployment | |
uses: actions/deploy-pages@v2 |