Fix location #1
Workflow file for this run
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: React components | ||
| on: | ||
| push: | ||
| jobs: | ||
| prepare: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| - name: Install node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| lint: | ||
| needs: prepare | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Lint | ||
| working-directory: ./packages/react-components | ||
| run: pnpm --filter @health-samurai/react-components run check | ||
| typecheck: | ||
| needs: prepare | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Type check | ||
| working-directory: ./packages/react-components | ||
| run: pnpm --filter @health-samurai/react-components run tsc:check | ||
| build: | ||
| needs: prepare | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Build | ||
| working-directory: ./packages/react-components | ||
| run: pnpm --filter @health-samurai/react-components run build | ||
| build-storybook: | ||
| needs: prepare | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Build storybook | ||
| working-directory: ./packages/react-components | ||
| run: pnpm --filter @health-samurai/react-components run build-storybook | ||
| publish-storybook-gate: | ||
| needs: | ||
| - lint | ||
| - typecheck | ||
| - build | ||
| - build-storybook | ||
| runs-on: ubuntu-24.04 | ||
| if: success() && github.ref == 'refs/heads/master' | ||
| storybook-prepare-pages: | ||
| needs: publish-storybook-gate | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| pages: write | ||
| id-token: write | ||
| steps: | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
| - name: Upload | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: packages/react-components/storybook-static | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
| storybook-deploy-pages: | ||
| needs: storybook-prepare-pages | ||
| permissions: | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||