Merge pull request #340 from kit-data-manager/updated-dependencies #63
This file contains hidden or 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: Deploy Storybook to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-component: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: npm ci | |
| run: npm ci | |
| - name: Build component | |
| run: npm run build | |
| working-directory: packages/stencil-library | |
| - name: Build Storybook | |
| run: npm run build-storybook | |
| working-directory: packages/stencil-library | |
| - name: Upload Storybook to GitHub Pages | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "packages/stencil-library/storybook-static" | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 | |
| with: | |
| token: ${{ github.token }} |