From ff22693bd14a2b1094fb9864ebc223d69a5fbec5 Mon Sep 17 00:00:00 2001 From: fabinppkbuilders <84453168+fabinppkbuilders@users.noreply.github.com> Date: Mon, 3 Oct 2022 11:52:58 -0300 Subject: [PATCH] fix: publish add registry-url (#385) * fix: publish add registry-url * chore: fix pipe Co-authored-by: Fabiano --- .github/workflows/publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 410814a..de18aa0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,10 +13,11 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - name: Set NPM Variables - run: echo "$PACKAGES_NPMRC" > .npmrc - env: - PACKAGES_NPMRC: ${{ secrets.PACKAGES_NPMRC }} + registry-url: 'https://registry.npmjs.org/' + # - name: Set NPM Variables + # run: echo "$PACKAGES_NPMRC" > .npmrc + # env: + # PACKAGES_NPMRC: ${{ secrets.PACKAGES_NPMRC }} - name: Install run: yarn install # Publish to npm @@ -31,6 +32,6 @@ jobs: registry-url: 'https://npm.pkg.github.com' scope: '@platformbuilders' # Publish to GitHub Packages - - run: yarn publish + - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}