Build React & CSS #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '.' |