From 5e317f635337f681408ca0391f2f9dbcbbb3d555 Mon Sep 17 00:00:00 2001 From: felipefialho Date: Wed, 22 Nov 2023 10:39:25 -0300 Subject: [PATCH] ci: change command to create .npmrc --- .github/workflows/ghpages.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index f56a15602..0b3f9ee1f 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -29,8 +29,10 @@ jobs: - name: Create .npmrc run: | - echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc + echo "//npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN + @juntossomosmais:registry=https://npm.pkg.github.com" > ~/.npmrc + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Cache node modules id: cache-npm