Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-08-16 21:27:34 +0300
committerGar <gar+gh@danger.computer>2021-08-17 19:02:11 +0300
commit7a582644d544af2c2b450b18bed1b4d5f71cd786 (patch)
treee157c4c548d878a98a7bc06ab43ac481fc32ffd6 /.github
parent22f3bbb2a0bf22280e0656852b9bb20795463ec5 (diff)
chore(ci): check that docs are up to date in ci
When we accidentally edit the auto-generated portions of the docs, this will catch the error and cause CI to fail. Later phase automated safety check that the early-stage human commenting in the last commit also addresses. Re: #3654 Re: #3630 PR-URL: https://github.com/npm/cli/pull/3655 Credit: @isaacs Close: #3655 Reviewed-by: @nlf
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3b622ed82..ffa194d01 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,24 @@ jobs:
run: node . run posttest
env:
DEPLOY_VERSION: testing
-
+
+ check_docs:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js 14.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: 14.x
+ - name: Install dependencies
+ run: |
+ node . install --ignore-scripts --no-audit
+ - name: Rebuild the docs
+ run: make freshdocs
+ - name: Git should not be dirty
+ run: node scripts/git-dirty.js
+
+
licenses:
runs-on: ubuntu-latest
steps: