Skip to content

Commit

Permalink
github npm repo
Browse files Browse the repository at this point in the history
  • Loading branch information
eschweitzer78 committed May 1, 2024
1 parent 107cab8 commit 0fc328c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
# Install npm dependencies for Prettier and Jest
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
env:
NODE_AUTH_TOKEN: ${{ github.token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
# Install npm dependencies for Prettier and Jest
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: jgierer12/npm-auth-gpr@v1
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
# Prettier formatting
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
# Install npm dependencies for Prettier and Jest
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: jgierer12/npm-auth-gpr@v1
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
# Prettier formatting
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/packaging-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ jobs:
# Install npm dependencies for cssgen
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com:/_authToken=${{secrets.GHCR_ACCESS_TOKEN}}" >> ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
# Prep
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/packaging-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ jobs:
# Install npm dependencies for cssgen
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com:/_authToken=${{secrets.GHCR_ACCESS_TOKEN}}" >> ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
# Prep
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ jobs:
# Install npm dependencies for cssgen
- name: "Install npm dependencies"
if: steps.cache-npm.outputs.cache-hit != 'true'
uses: aquacash5/npm-gpr-auth@v2
with:
token: ${{ github.token }}
run: |
echo "@dpc-sdp:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com:/_authToken=${{secrets.GHCR_ACCESS_TOKEN}}" >> ~/.npmrc
echo "@dpc-sdp:registry=https://npm.pkg.github.com" >> ~/.npmrc
npm ci
# Prep
Expand Down

0 comments on commit 0fc328c

Please sign in to comment.