chore: configured knip #3004
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: Storybook - Pull Request | |
on: | |
pull_request: | |
branches: | |
- daily | |
- release/alpha | |
- master | |
paths: | |
- ".github/workflows/**" | |
- "packages/@liexp/**/src/**" | |
- "services/storybook/**" | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
with: | |
hash: ${{ hashFiles('**/pnpm-lock.yaml') }} | |
lint: | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
with: | |
hash: ${{ hashFiles('**/pnpm-lock.yaml') }} | |
- uses: ./.github/actions/build-packages | |
with: | |
hash: ${{ github.sha }} | |
- name: Lint code | |
run: pnpm storybook lint | |
build: | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
with: | |
hash: ${{ hashFiles('**/pnpm-lock.yaml') }} | |
- uses: ./.github/actions/build-packages | |
with: | |
hash: ${{ github.sha }} | |
- uses: actions/cache@v4 | |
with: | |
path: services/storybook/build | |
key: storybook-build | |
- name: Type Check Storybook | |
run: pnpm storybook build | |
- name: Build Storybook | |
run: pnpm storybook build-sb |