Skip to content

update lockfile

update lockfile #532

Workflow file for this run

name: ci
on: push
jobs:
lint:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: install and prepare
run: yarn
- name: lint
run: yarn lint:fix
- name: cache
uses: actions/cache@v3
id: ci-action-cache
with:
path: ./*
key: ${{ github.sha }}
build:
runs-on: ubuntu-latest
needs: lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: restore
uses: actions/cache@v3
id: ci-action-cache
with:
path: ./*
key: ${{ github.sha }}
- name: build docs
run: yarn build:storybook
- name: cache
uses: actions/cache@v3
id: ci-sb-cache
with:
path: ./sbdocs
key: ${{ github.sha }}
deploy:
if: ${{ github.ref_name == 'master' }}
runs-on: ubuntu-latest
needs: build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v3
- name: restore
uses: actions/cache@v3
id: ci-sb-cache
with:
path: ./sbdocs
key: ${{ github.sha }}
- name: deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./sbdocs
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Deploy to GitHub pages:'