Skip to content

Commit

Permalink
Use HOME path to write .npmrc file (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kusnierz authored Nov 8, 2024
1 parent ccff6a7 commit 315376e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ runs:
- name: Configure Debitoor token
env:
debitoor_npm_token: ${{ inputs.debitoor-npm-token }}
run: echo "//registry.npmjs.org/:_authToken=${debitoor_npm_token}" > .npmrc
run: echo "//registry.npmjs.org/:_authToken=${debitoor_npm_token}" > ~/.npmrc
shell: bash
- name: Configure SumUp token
if: inputs.sumup-npm-token != ''
env:
sumup_npm_token: ${{ inputs.sumup-npm-token }}
run: |
echo "@sumup:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${sumup_npm_token}" >> .npmrc
echo "@sumup:registry=https://npm.pkg.github.com" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${sumup_npm_token}" >> ~/.npmrc
shell: bash
- name: Install SSH Key
if: inputs.gh-ssh-private-key != ''
Expand Down

0 comments on commit 315376e

Please sign in to comment.