Nuxt/.github/workflows/docs.yml

39 lines
661 B
YAML
Raw Permalink Normal View History

2022-03-16 13:58:53 +00:00
name: Docs
on:
push:
paths:
- "docs/**"
- ".github/workflows/docs.yml"
2022-03-16 13:58:53 +00:00
branches:
- main
pull_request:
paths:
- "docs/**"
- ".github/workflows/docs.yml"
2022-03-16 13:58:53 +00:00
branches:
- main
jobs:
lint-docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- uses: actions/checkout@v3
- run: corepack enable
2022-03-16 13:58:53 +00:00
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
2022-03-16 13:58:53 +00:00
- name: Install dependencies
run: pnpm install
2022-03-16 13:58:53 +00:00
- name: Lint (docs)
run: pnpm lint:docs