Skip to content

Commit 032e48f

Browse files
committed
Add NODE_AUTH_TOKEN input for GitHub package registry access in workflows
1 parent 113bbe5 commit 032e48f

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -16,7 +19,7 @@ runs:
1619
- name: Npm cli install
1720
working-directory: .
1821
env:
19-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
2023
run: npm ci
2124
shell: bash
2225
- name: Setup Ruby

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inputs:
2828
nodejs_version:
2929
description: "Node.js version, set by the CI/CD pipeline workflow"
3030
required: true
31+
NODE_AUTH_TOKEN:
32+
description: "Token for access to github package registry"
33+
required: true
3134

3235
runs:
3336
using: composite

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
8+
NODE_AUTH_TOKEN:
9+
description: "Token for access to github package registry"
10+
required: true
711
runs:
812
using: composite
913

@@ -18,7 +22,7 @@ runs:
1822
- name: Npm install
1923
working-directory: .
2024
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
2226
run: npm ci
2327
shell: bash
2428

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -17,7 +20,7 @@ runs:
1720
- name: Npm install
1821
working-directory: .
1922
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
2124
run: npm ci
2225
shell: bash
2326

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,4 @@ jobs:
8989
runId: "${{ github.run_id }}"
9090
buildSandbox: ${{ inputs.build_sandbox }}
9191
releaseVersion: ${{ github.ref_name }}
92+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stage-3-build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
uses: ./.github/actions/build-docs
5252
with:
5353
version: "${{ inputs.version }}"
54+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5455

5556
artefact-sdks:
5657
name: "Build SDKs"
@@ -63,6 +64,7 @@ jobs:
6364
uses: ./.github/actions/build-sdk
6465
with:
6566
version: "${{ inputs.version }}"
67+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668

6769
# Take out for now - might add again in the future
6870
# artefact-servers:
@@ -133,3 +135,4 @@ jobs:
133135
buildSandbox: true
134136
releaseVersion: ${{ github.head_ref || github.ref_name }}
135137
nodejs_version: ${{ inputs.nodejs_version }}
138+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)