Skip to content

Commit

Permalink
chore: add authentication step for private packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliibendyk committed Apr 4, 2024
1 parent bf7e43b commit 746fb2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
uses: actions/[email protected]
with:
node-version: 20.11
# allow packages inside this repo to consume from our private npm registry
- name: Authenticate against NPM
run: |
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
npm config list
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -24,6 +31,6 @@ jobs:
uses: ./
with:
skipOnCommitMsg: "sample"
ghToken: ${{secrets.GH_TOKEN_3}}
ghToken: ${{ secrets.GH_TOKEN_3 }}
- name: Some Job
run: echo "sample"

0 comments on commit 746fb2c

Please sign in to comment.