cosmos-sdk/.github/workflows/check-docs.yml
dependabot[bot] 66a4db235b
build(deps): Bump actions/checkout from 2 to 3 (#11312)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 19:21:26 +01:00

28 lines
642 B
YAML

name: Check docs build
# This workflow runs when a PR is labeled with `docs`
# This will check if the docs build successfully by running `npm run build`
on:
pull_request:
types: [ labeled ]
paths:
- "docs/**"
jobs:
check-docs-build:
if: ${{ github.event.label.name == 'docs' }}
name: Check docs build
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Install dependencies and build docs 🧱
run: |
cd docs
npm install
npm run build