Skip to content

Commit 13e3397

Browse files
heiskrCopilot
andauthored
Use node-npm-setup consistently across workflows (#62507)
Co-authored-by: Copilot <[email protected]> Copilot-Session: 9fa62c70-6b0e-40df-8a9e-88ec6807a878
1 parent d97bc2d commit 13e3397

5 files changed

Lines changed: 6 additions & 30 deletions

File tree

.github/workflows/docs-review-collect.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,8 @@ jobs:
2222
- name: Check out repo content
2323
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2424

25-
- name: Setup Node.js
26-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
27-
with:
28-
node-version-file: 'package.json'
29-
cache: npm
30-
31-
- name: Install dependencies
32-
run: npm ci
25+
- name: Set up Node and dependencies
26+
uses: ./.github/actions/node-npm-setup
3327

3428
- name: Run script for audit-log-allowlists
3529
run: |

.github/workflows/link-check-external.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929

3030
- uses: ./.github/actions/node-npm-setup
3131

32-
- name: Install dependencies
33-
run: npm ci
34-
3532
- name: Check external links
3633
id: check
3734
env:

.github/workflows/link-check-internal.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ jobs:
8383
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8484
- uses: ./.github/actions/node-npm-setup
8585

86-
- name: Install dependencies
87-
run: npm ci
88-
8986
# Clone translations if not English
9087
- name: Clone translations
9188
if: matrix.language != 'en'

.github/workflows/os-ready-for-review.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@ jobs:
4747
echo Aborting. This workflow must be triggered by a member of the docs team.
4848
exit 1
4949
50-
- name: Setup Node.js
51-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
52-
with:
53-
node-version-file: 'package.json'
54-
cache: npm
55-
56-
- name: Install dependencies
57-
run: npm ci
50+
- name: Set up Node and dependencies
51+
uses: ./.github/actions/node-npm-setup
5852

5953
- name: Run script
6054
run: |

.github/workflows/sync-sdk-docs.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,8 @@ jobs:
6464
echo "SDK_TMP=$tmp" >> "$GITHUB_ENV"
6565
echo "Fetched copilot-sdk@${SDK_SHA::7}"
6666
67-
- name: Setup Node.js
68-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
69-
with:
70-
node-version: 22
71-
cache: npm
72-
73-
- name: Install dependencies
74-
run: npm ci
67+
- name: Set up Node and dependencies
68+
uses: ./.github/actions/node-npm-setup
7569

7670
- name: Install mermaid-cli
7771
run: npm install -g @mermaid-js/mermaid-cli@11

0 commit comments

Comments
 (0)