Skip to content

Commit 746fb2c

Browse files
committed
chore: add authentication step for private packages
1 parent bf7e43b commit 746fb2c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
uses: actions/setup-node@v4.0.2
1717
with:
1818
node-version: 20.11
19+
# allow packages inside this repo to consume from our private npm registry
20+
- name: Authenticate against NPM
21+
run: |
22+
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
23+
npm config list
24+
env:
25+
GH_TOKEN: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
1926
- name: Install dependencies
2027
run: npm ci
2128
- name: Build
@@ -24,6 +31,6 @@ jobs:
2431
uses: ./
2532
with:
2633
skipOnCommitMsg: "sample"
27-
ghToken: ${{secrets.GH_TOKEN_3}}
34+
ghToken: ${{ secrets.GH_TOKEN_3 }}
2835
- name: Some Job
2936
run: echo "sample"

0 commit comments

Comments
 (0)