Skip to content

Commit c427d03

Browse files
committed
Move NODE_AUTH_TOKEN to npm view step in CI workflow
1 parent 5741a86 commit c427d03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ jobs:
273273
permissions:
274274
contents: read
275275
packages: read
276-
env:
277-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278276
steps:
279277
- name: Checkout code
280278
uses: actions/[email protected]
@@ -286,7 +284,10 @@ jobs:
286284

287285
- name: check if local version differs from latest published version
288286
id: check-version
287+
env:
288+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
289289
run: |
290+
cat .npmrc
290291
npm view @nhsdigital/nhs-notify-event-schemas-supplier-api --json
291292
published_version=$(npm view @nhsdigital/nhs-notify-event-schemas-supplier-api --json 2>/dev/null | jq -r '.["dist-tags"].latest // "null"')
292293
echo "Published version: $published_version"

0 commit comments

Comments
 (0)