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

Update dependency lint-staged to v11.2.6 #762

Update dependency lint-staged to v11.2.6

Update dependency lint-staged to v11.2.6 #762

Workflow file for this run

# Document: https://help.github.com/ja/actions
name: CHECK BUILD
on:
pull_request:
branches:
- main
- master
jobs:
storybook:
name: Storybook can be generated
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout πŸ›Ž ${{ matrix.node }}
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/setup-node@v2.5.2
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/cache@v2.1.8
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install --frozen-lockfile
- name: Run Build πŸ‘€
run: yarn generate:storybook
- name: Put Artifact πŸ‘€
uses: actions/upload-artifact@v2
with:
name: Storybook
path: storybook-static
build:
name: App can be generated
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout πŸ›Ž ${{ matrix.node }}
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/setup-node@v2.5.2
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/cache@v2.1.8
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install --frozen-lockfile
- run: yarn generate --fail-on-error