mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 11:16:15 -04:00
45 lines
848 B
YAML
45 lines
848 B
YAML
name: Build CSS
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'scss/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'scss/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build CSS
|
|
run: npm run build
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config --global user.name 'github-actions[bot]'
|
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
git add .
|
|
git commit -m 'Build CSS'
|
|
git push
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|