Skip to content

chore: Adjust the yarn examples #12491

chore: Adjust the yarn examples

chore: Adjust the yarn examples #12491

Workflow file for this run

name: cSpell-cli
on:
pull_request:
push:
branches:
- main
# Run on demand
workflow_dispatch:
permissions:
contents: read
jobs:
cspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
- run: pnpm -v
- # It is necessary to run `pnpm i` in order install some dictionaries.
name: prepare-cspell-action
run: pnpm i
- run: pnpm --filter @cspell/cspell-types --filter @cspell/cspell-bundled-dicts run build
- name: Restore CSpell cache
uses: actions/[email protected]
with:
key: cspell-cache-v2-${{ runner.os }}-${{ hashFiles('**/*.ts', '**/*.md') }}
path: |
.cspellcache
restore-keys: |
cspell-cache-v2-${{ runner.os }}-
- name: cspell@latest
run: npx cspell@latest --cache --cache-strategy=content --cache-location=.cspellcache --exclude="yarn2" --no-progress "**"
# run: npx cspell@latest --cache --cache-strategy=content --cache-location=.cspellcache --exclude="yarn2" "**"