From 9a543b293e3846bc16ee783cc1962bd966e51260 Mon Sep 17 00:00:00 2001 From: Sachsenspielt Date: Tue, 2 Jan 2024 13:58:04 +0100 Subject: [PATCH] fix(npm-ci): fixed npm registry authentification --- .github/workflows/npm.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 6ab0174..e7eee90 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -44,7 +44,12 @@ jobs: with: node-version: 20 + - name: Config npm + run: | + npm config set always-auth true + npm config set _auth ${{secrets.NPM_PUBLISH_KEY}} + npm config set email ${{secrets.NPM_EMAIL}} + npm config set registry https://registry.npmjs.org/ + - name: Publish to NPM run: npm publish - env: - NPM_TOKEN: ${{secrets.NPM_PUBLISH_KEY}}