chore(devdeps): update dependency storybook-dark-mode to v4 - autoclosed #14513
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
push: | |
branches: | |
- main | |
jobs: | |
typecheck: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm typecheck | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm run lint | |
test: | |
runs-on: ubuntu-22.04 | |
needs: [lint, typecheck] | |
strategy: | |
matrix: | |
node: ['18', '20'] | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
fetch-depth: '0' | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm run test:unit:coverage | |
- uses: codecov/[email protected] | |
accessibility: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
fetch-depth: '0' | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm run test:a11y | |
build: | |
strategy: | |
matrix: | |
node: ['18', '20'] | |
runs-on: ubuntu-22.04 | |
needs: [lint, typecheck] | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: pnpm install | |
- run: pnpm run build | |
build-examples: # This will build all projects in the examples folder, it assures that all examples are working | |
strategy: | |
matrix: | |
node: ['20'] | |
runs-on: ubuntu-22.04 | |
needs: [lint, test] | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpm install | |
- run: pnpm run build:examples | |
chromatic-deployment: | |
runs-on: ubuntu-22.04 | |
env: | |
DEPLOYMENT_NAME: 'storybook' | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
fetch-depth: 0 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- name: Export custom variables | |
run: | | |
SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF_SLUG_URL-$DEPLOYMENT_NAME | rev | cut -c-37 | rev | sed 's/^-//g') | |
([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV | |
- name: Start deployment | |
uses: bobheadxi/[email protected] | |
id: deployment | |
with: | |
step: start | |
token: ${{ secrets.GH_TOKEN }} | |
env: ${{ env.BRANCH_SLUG }} | |
ref: ${{ github.head_ref }} | |
- uses: pnpm/[email protected] | |
- name: Install dependencies | |
run: pnpm install | |
- name: Publish to Chromatic | |
uses: chromaui/action@v11 | |
id: chromatic | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: build:storybook:stats | |
onlyChanged: true | |
- name: Update deployment | |
uses: bobheadxi/[email protected] | |
with: | |
step: finish | |
env: ${{ env.BRANCH_SLUG }} | |
token: ${{ secrets.GH_TOKEN }} | |
auto_inactive: true | |
# This will now be automatically handled by github with the auto_inactive | |
override: false | |
status: ${{ job.status }} | |
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | |
env_url: ${{ steps.chromatic.outputs.storybookUrl }} |