From 9aa9edf87f82e9307319ead92f2a2ae74905449e Mon Sep 17 00:00:00 2001 From: Grzegorz Kucmierz Date: Tue, 3 Mar 2026 09:37:55 +0000 Subject: [PATCH] fix: manual npmrc configuration to resolve auth issues in workflow --- .gitea/workflows/npm-publish.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/npm-publish.yaml b/.gitea/workflows/npm-publish.yaml index b0ecbf3..bc25eb7 100644 --- a/.gitea/workflows/npm-publish.yaml +++ b/.gitea/workflows/npm-publish.yaml @@ -17,6 +17,9 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run build - - run: npm publish --access public + - name: Publish to npm + run: | + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}