Skip to content

Commit fbf2e9d

Browse files
committed
Add NODE_AUTH_TOKEN to NPM install steps in workflows
1 parent 8981a44 commit fbf2e9d

File tree

10 files changed

+26
-2
lines changed

10 files changed

+26
-2
lines changed

.github/actions/build-docs/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ runs:
1515
registry-url: 'https://npm.pkg.github.com'
1616
- name: Npm cli install
1717
working-directory: .
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1820
run: npm ci
1921
shell: bash
2022
- name: Setup Ruby

.github/actions/build-libraries/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runs:
1616

1717
- name: Npm install
1818
working-directory: .
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1921
run: npm ci
2022
shell: bash
2123

.github/actions/build-proxies/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ runs:
5151
5252
- name: Npm install
5353
working-directory: .
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5456
run: npm ci
5557
shell: bash
5658

.github/actions/build-sandbox/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ runs:
1717

1818
- name: Npm install
1919
working-directory: .
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022
run: npm ci
2123
shell: bash
2224

.github/actions/build-sdk/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runs:
1616

1717
- name: Npm install
1818
working-directory: .
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1921
run: npm ci
2022
shell: bash
2123

.github/actions/build-server/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runs:
1616

1717
- name: Npm install
1818
working-directory: .
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1921
run: npm ci
2022
shell: bash
2123

.github/workflows/manual-proxy-environment-deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636

3737
- name: Npm install
3838
working-directory: .
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
run: npm ci
4042
shell: bash
4143

.github/workflows/pr_closed.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
node-version: ${{ inputs.nodejs_version }}
120120
registry-url: 'https://npm.pkg.github.com'
121121
- name: "Install dependencies"
122+
env:
123+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122124
run: npm ci
123125
- name: "Run provider contract tests"
124126
run: make test-contract
@@ -147,6 +149,8 @@ jobs:
147149
registry-url: 'https://npm.pkg.github.com'
148150

149151
- name: Install dependencies
152+
env:
153+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
150154
run: npm ci
151155

152156
- name: Publish to GitHub Packages

.github/workflows/stage-1-commit.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ jobs:
288288
env:
289289
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
290290
run: |
291-
cat .npmrc
292-
npm view @nhsdigital/nhs-notify-event-schemas-supplier-api --json
293291
published_version=$(npm view @nhsdigital/nhs-notify-event-schemas-supplier-api --json 2>/dev/null | jq -r '.["dist-tags"].latest // "null"')
294292
echo "Published version: $published_version"
295293

.github/workflows/stage-2-test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
restore-keys: |
5858
${{ runner.os }}-node-${{ inputs.nodejs_version }}-
5959
- name: "Repo setup"
60+
env:
61+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6062
run: |
6163
npm ci
6264
- name: "Generate dependencies"
@@ -79,6 +81,8 @@ jobs:
7981
restore-keys: |
8082
${{ runner.os }}-node-${{ inputs.nodejs_version }}-
8183
- name: "Repo setup"
84+
env:
85+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8286
run: |
8387
npm ci
8488
- name: "Generate dependencies"
@@ -115,6 +119,8 @@ jobs:
115119
restore-keys: |
116120
${{ runner.os }}-node-${{ inputs.nodejs_version }}-
117121
- name: "Repo setup"
122+
env:
123+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118124
run: |
119125
npm ci
120126
- name: "Generate dependencies"
@@ -139,6 +145,8 @@ jobs:
139145
restore-keys: |
140146
${{ runner.os }}-node-${{ inputs.nodejs_version }}-
141147
- name: "Repo setup"
148+
env:
149+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142150
run: |
143151
npm ci
144152
- name: "Generate dependencies"

0 commit comments

Comments
 (0)