Skip to content

Commit 601fb55

Browse files
lukekarryswraithgar
authored andcommitted
chore: sync scripts/ and docs/ tooling with latest
1 parent 2f0b4df commit 601fb55

24 files changed

+2047
-911
lines changed

.github/workflows/ci-npmcli-docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,45 @@ jobs:
8787
- name: Check Git Status
8888
if: matrix && matrix.platform.os != 'windows-latest'
8989
run: node scripts/git-dirty.js
90+
91+
compare-docs:
92+
name: Compare Docs
93+
if: github.repository_owner == 'npm' && github.event_name == 'pull_request'
94+
runs-on: ubuntu-latest
95+
defaults:
96+
run:
97+
shell: bash
98+
steps:
99+
- name: Checkout
100+
uses: actions/checkout@v3
101+
with:
102+
fetch-depth: 0
103+
- name: Setup Git User
104+
run: |
105+
git config --global user.email "npm-cli+bot@github.com"
106+
git config --global user.name "npm CLI robot"
107+
- name: Setup Node
108+
uses: actions/setup-node@v3
109+
with:
110+
node-version: 16.x
111+
cache: npm
112+
- name: Reset Deps
113+
run: node . run resetdeps
114+
- name: Build Docs
115+
run: |
116+
node . run build -w docs
117+
mv man/ man-update/
118+
mv docs/output/ docs/output-update/
119+
mv docs/content/ docs/content-update/
120+
- name: Get Current Docs
121+
run: |
122+
git clean -fd
123+
git checkout ${{ github.event.pull_request.base.ref }}
124+
node . run resetdeps
125+
node . run build -w docs
126+
- name: Diff Man
127+
run: diff -r --color=always man/ man-update/ || true
128+
- name: Diff HTML
129+
run: diff -r --color=always docs/output/ docs/output-update/ || true
130+
- name: Diff Markdown
131+
run: diff -r --color=always docs/content/ docs/content-update/ || true

.github/workflows/ci-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ jobs:
282282
- name: Reset Deps
283283
run: node . run resetdeps
284284
- name: Pack
285+
env:
286+
SMOKE_PUBLISH_NPM: 1
285287
run: |
286288
NPM_VERSION="$(node . --version)-$GITHUB_SHA.0"
287289
node . version $NPM_VERSION --ignore-scripts
@@ -291,7 +293,7 @@ jobs:
291293
node scripts/remove-files.js
292294
# call installed npm instead of local source since we are testing
293295
# the packed tarball that we just installed globally
294-
SMOKE_PUBLISH_NPM=1 npm test -w smoke-tests --ignore-scripts
296+
npm test -w smoke-tests --ignore-scripts
295297
- name: Conclude Check
296298
uses: LouisBrunner/checks-action@v1.3.1
297299
if: steps.check.outputs.check_id && always()

0 commit comments

Comments
 (0)