Skip to content

Commit

Permalink
ci: add npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho committed Jul 24, 2023
1 parent d3077a3 commit c37fc8b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sonarcloud-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand Down

0 comments on commit c37fc8b

Please sign in to comment.