Skip to content

Fix location

Fix location #1

name: React components

Check failure on line 1 in .github/workflows/react-components.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/react-components.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: publish-storybook-gate
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