Skip to content

fix(deps): update react monorepo #2671

fix(deps): update react monorepo

fix(deps): update react monorepo #2671

Workflow file for this run

name: Style
on: push
jobs:
prettier:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 19
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run Prettier
run: pnpm format
- name: Assert diff
id: assert-diff
run: |
if [ ! -z "$(git status --short)" ]; then
echo "❌ Failed style check"
git diff --color
exit 1
else
echo "✅ Passed style check"
fi