-
Notifications
You must be signed in to change notification settings - Fork 40
34 lines (34 loc) · 982 Bytes
/
build-css.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: '.'