feat: update test workflow to use PKG_READ_TOKEN for NODE_AUTH_TOKEN

This commit is contained in:
Usman Baig
2026-03-01 00:20:17 +01:00
parent 9a39745323
commit 6bb356697b

View File

@@ -7,6 +7,10 @@ on:
pull_request: pull_request:
branches: [main, staging] branches: [main, staging]
permissions:
contents: read
packages: read
jobs: jobs:
test: test:
name: unit-tests name: unit-tests
@@ -23,7 +27,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
env: env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.PKG_READ_TOKEN }}
- name: Run tests - name: Run tests
run: npm test run: npm test