File: ci-npmcli-docs.yml

package info (click to toggle)
npm 9.2.0~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 318,988 kB
  • sloc: javascript: 167,820; sh: 194; makefile: 52; perl: 11
file content (22 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{> ci }}

  compare-docs:
    {{> job jobName="Compare Docs" jobCheckout=(obj fetch-depth=0) jobIf="github.event_name == 'pull_request'" }}
      - name: Build Docs
        run: |
          node . run build -w docs
          mv man/ man-update/
          mv docs/output/ docs/output-update/
          mv docs/content/ docs/content-update/
      - name: Get Current Docs
        run: |
          git clean -fd
          git checkout $\{{ github.event.pull_request.base.ref }}
          node . run resetdeps
          node . run build -w docs
      - name: Diff Man
        run: diff -r --color=always man/ man-update/ || true
      - name: Diff HTML
        run: diff -r --color=always docs/output/ docs/output-update/ || true
      - name: Diff Markdown
        run: diff -r --color=always docs/content/ docs/content-update/ || true