Copy edit custom component documentation #20746
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linter # cSpell:ignore yargs | |
| on: | |
| merge_group: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| text-linter: | |
| name: TEXT linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Create and use reduced-dependencies package.json | |
| run: | | |
| mkdir -p tmp | |
| jq '.devDependencies |= with_entries( select(.key | startswith("textlint"))) | |
| | del(.dependencies, .optionalDependencies)' \ | |
| package.json > tmp/package-ci.json | |
| cp tmp/package-ci.json package.json | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| cache-dependency-path: tmp/package-ci.json | |
| - run: npm install --ignore-scripts --omit=optional | |
| - run: .github/scripts/textlint.sh | |
| markdown-linter: | |
| name: MARKDOWN linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Create and use reduced-dependencies package.json | |
| run: | | |
| mkdir -p tmp | |
| jq '.devDependencies |= with_entries( | |
| select(.key | test("gulp|markdown|through|require|yargs|js-yaml|ajv|ajv-formats|ajv-errors")) | |
| ) | |
| | del(.dependencies, .optionalDependencies)' \ | |
| package.json > tmp/package-ci.json | |
| cp tmp/package-ci.json package.json | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| cache-dependency-path: tmp/package-ci.json | |
| - run: npm install --ignore-scripts --omit=optional | |
| - run: npm run check:markdown |