mirror of https://github.com/twbs/bootstrap.git
47 lines
961 B
YAML
47 lines
961 B
YAML
name: Build CSS
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'scss/**'
|
|
- 'build/**'
|
|
- 'package.json'
|
|
- 'package-lock.json'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FORCE_COLOR: 2
|
|
NODE: 22
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-css:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
|
with:
|
|
node-version: "${{ env.NODE }}"
|
|
cache: npm
|
|
|
|
- name: Install npm dependencies
|
|
run: npm ci
|
|
|
|
- name: Build CSS
|
|
run: npm run css
|
|
|
|
- name: Upload CSS artifacts
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: css-dist
|
|
path: dist/css/
|
|
retention-days: 1
|