From dbfab13d6cfcd0f6e2b0f60a6f16d2c52c68788d Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Wed, 29 May 2024 19:09:15 +0200 Subject: [PATCH] try auth like this? --- .github/workflows/publish-libs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-libs.yml b/.github/workflows/publish-libs.yml index 74a9bf13c5..66f1ba4815 100644 --- a/.github/workflows/publish-libs.yml +++ b/.github/workflows/publish-libs.yml @@ -39,10 +39,11 @@ jobs: with: node-version: 18.18 cache: 'npm' - scope: '@takaro' + registry-url: 'https://registry.npmjs.org' - run: ./scripts/dev-init.sh - - run: npm -w packages/${{ matrix.package.name }} publish --provenance --access public --verbose - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Authenticate with NPM + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + + - run: npm -w packages/${{ matrix.package.name }} publish --access public --verbose