Skip to content

Commit 494ce37

Browse files
committed
chore: add auth config to test.yml
1 parent 66c2c15 commit 494ce37

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
with:
1818
node-version: 20.11
1919
cache: 'npm'
20+
# allow packages inside this repo to consume from our private npm registry
21+
- name: Authenticate against NPM
22+
run: |
23+
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
24+
npm config list
25+
env:
26+
githubToken: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
2027
- name: Install dependencies
2128
run: npm ci
2229
- name: Build
@@ -25,6 +32,5 @@ jobs:
2532
uses: ./
2633
with:
2734
skipOnCommitMsg: "sample"
28-
githubToken: ${{ secrets.GITHUB_TOKEN }}
2935
- name: Some Job
3036
run: echo "sample"

0 commit comments

Comments
 (0)