This action provides the following functionality for GitHub Actions users:
- Annotate the errors and warnings of stylelint results in GitHub Actions.
See action.yml
stylelint>= 13
name: Stylelint
on:
pull_request:
jobs:
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- uses: woocommerce/grow/stylelint-annotation@actions-v3
with:
formatter-dest: "./my-formatter.cjs"
- run: stylelint --custom-formatter ./my-formatter.cjs "**/*.css"Uses .cjs to ensure the formatter script will be imported as a CommonJS module.