Skip to content

Build React & CSS

Build React & CSS #94

Workflow file for this run

name: Build React & CSS
on:
workflow_dispatch:
pull_request_review:
branches:
- main
paths:
- 'packages/react/**'
- 'packages/css/**'
jobs:
checks:
name: Builds, lints and tests code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Use node 20 and yarn cache
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build React & CSS
run: yarn build:react && yarn build:css
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
pull: '--rebase --autostash'
default_author: github_actions
message: '🍱 Generated new React CSS file'
add: '.'