From e40a2d8e9d14762aac0ca195ddb80bfbc26fdc3e Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Tue, 26 Mar 2024 08:32:38 +0000 Subject: [PATCH] feat: Fix installation of dependencies in release workflow., add authentication with Registry in release workflow., ensure registry access in release workflow. and remove pre-release step and add publish step in release workflow. --- .github/workflows/release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd07f82..db2c6be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,17 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts + - name: Authenticate with Registry + run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Ensure registry access + run: npm whoami + - name: Pre-release run: npm run prepublish - - name: Create Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish run: | npm publish