Stylelint org-wide GitHub settings.
You can sync our common labels to a new repository using github-label-sync:
- Clone this repo.
- Run
npx github-label-sync --access-token xxxx stylelint/<repo-name>.
The following reusable workflows for GitHub Actions allow us to set up CI settings easily:
Usage:
jobs:
lint:
uses: stylelint/.github/.github/workflows/call-lint.yml@d8a0a5b9734a79a67803d47b9aa93e31252a0459 # 0.1.0
# Specify values different from the defaults.
# with:
# node-version: 18
# os: macos-latest
test:
uses: stylelint/.github/.github/workflows/call-test.yml@d8a0a5b9734a79a67803d47b9aa93e31252a0459 # 0.1.0
# Specify values different from the defaults. Need to pass a JSON string.
# with:
# node-version: '["16", "18"]'
# os: '["ubuntu-latest", "windows-latest"]'
# exclude: '[{"node-version": "16", "os": "windows-latest"}]'
# test-options: '--foo --bar'
release-pr:
uses: stylelint/.github/.github/workflows/call-release-pr.yml@d8a0a5b9734a79a67803d47b9aa93e31252a0459 # 0.1.0
with:
new-version: ${{ github.event.inputs.new-version }}
release:
uses: stylelint/.github/.github/workflows/call-release.yml@d8a0a5b9734a79a67803d47b9aa93e31252a0459 # 0.1.0
# Specify values different from the defaults.
# with:
# publish: falseTo perform releasing in a repository with the shareable workflows, take the following steps:
Prerequisites:
- Must follow the release branch name pattern
release/{version}, e.g.,release/1.0.0. - Must import the branch and tag rulesets.
- Must set up the
npmenvironment.
Then follow the release steps from the stylelint/stylelint repo. Only owners can review and merge the PR, and only owners with publishing access can approve the pending release job.