diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index aa4bd5377..26302f749 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -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 diff --git a/.github/workflows/icons.yml b/.github/workflows/icons.yml index f859a4c0c..f02d4cf68 100644 --- a/.github/workflows/icons.yml +++ b/.github/workflows/icons.yml @@ -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 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1a577eae7..16812ca8a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -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 diff --git a/.github/workflows/sonarcloud-scan.yml b/.github/workflows/sonarcloud-scan.yml index 6d8092142..4265a98a0 100644 --- a/.github/workflows/sonarcloud-scan.yml +++ b/.github/workflows/sonarcloud-scan.yml @@ -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