Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

build(deps-dev): bump the storybook group with 7 updates #750

build(deps-dev): bump the storybook group with 7 updates

build(deps-dev): bump the storybook group with 7 updates #750

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request_target:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
dependabot:
name: '🤖 Dependabot Automation'
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.GH_TOKEN }}
command: squash and merge
build:
name: '🛠️ Build'
runs-on: ubuntu-latest
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: '⚙️ Use Node.js'
uses: actions/setup-node@v3
with:
check-latest: true
cache: 'npm'
node-version-file: '.nvmrc'
- name: '⛓️ Install dependencies'
run: npm ci --omit=optional --audit=false --prefer-offline --progress=false
- name: '🛠️ Build'
run: npm run build
lint:
name: '🕵️‍♂️ Lint'
runs-on: ubuntu-latest
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: '⚙️ Use Node.js'
uses: actions/setup-node@v3
with:
check-latest: true
cache: 'npm'
node-version-file: '.nvmrc'
- name: '⛓️ Install dependencies'
run: npm ci --omit=optional --audit=false --prefer-offline --progress=false
- name: '✅ Lint code'
run: npm run lint
test:
name: '🧪 Test'
runs-on: ubuntu-latest
needs: [build]
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: '⚙️ Use Node.js'
uses: actions/setup-node@v3
with:
check-latest: true
cache: 'npm'
node-version-file: '.nvmrc'
- name: '⛓️ Install dependencies'
run: npm ci --omit=optional --audit=false --prefer-offline --progress=false
- name: '🧫 Run tests'
run: npm test
deploy:
name: '🚀 Deploy'
runs-on: ubuntu-latest
needs: [build]
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: '⚙️ Use Node.js'
uses: actions/setup-node@v3
with:
check-latest: true
cache: 'npm'
node-version-file: '.nvmrc'
- name: '⛓️ Install dependencies'
run: npm ci --omit=optional --audit=false --prefer-offline --progress=false
- name: '🛠️ Build'
run: npm run build
- name: '🚀 Deploy'
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: packages/storybook/storybook-static