Skip to content

Bump webpack from 4.43.0 to 5.94.0 #335

Bump webpack from 4.43.0 to 5.94.0

Bump webpack from 4.43.0 to 5.94.0 #335

Workflow file for this run

name: Build
on: push
jobs:
build:
name: Build and Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Checks-out the Repository
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Required to retrieve git history (for Chromatic)
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn modules cache
uses: actions/cache@v2
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 node_modules
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Deploy to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
# Automatically Accept changes on first-level branches (develop, master), as they are protected
# See https://www.chromatic.com/docs/ci#maintain-a-clean-master-branch
autoAcceptChanges: develop