Bump markdownlint-cli from 0.41.0 to 0.42.0 #313
Workflow file for this run
This file contains 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: "Link check for internal links" | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "**.md" | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "**.md" | |
jobs: | |
link-checker: | |
name: Check internal and external links in markdown files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set Node and pnpm versions | |
id: versions | |
shell: bash | |
run: | | |
NODE_VERSION=$(jq -r '.engines.node' package.json) | |
PNPM_VERSION=$(jq -r '.engines.pnpm' package.json) | |
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_OUTPUT | |
echo "PNPM_VERSION=$PNPM_VERSION" >> $GITHUB_OUTPUT | |
- name: Setup node.js | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ steps.versions.outputs.NODE_VERSION }} | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
with: | |
version: ${{ steps.versions.outputs.PNPM_VERSION }} | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Setup pnpm cache | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run markdown link check | |
run: pnpm markdown-link-check -q -o |