From 61245eac6d0fecac0279ed131be8cbd608552c86 Mon Sep 17 00:00:00 2001 From: Rajnish Dargan Date: Thu, 8 Aug 2024 14:46:44 +0530 Subject: [PATCH] Issue #224544 feat: Test workflow execution --- .github/workflows/publish-package.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 4ac617ca..d4b866d8 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -31,11 +31,8 @@ jobs: node-version: '18' registry-url: 'https://registry.npmjs.org' - - name: Authenticate to npm - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: 🔑 Authenticate to npm + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - name: 📦 Install Dependencies run: npm install @@ -61,12 +58,10 @@ jobs: run: | cd dist/quml-library if [[ "$(jq -r .version package.json)" == *"beta"* ]]; then - npm publish --registry https://registry.npmjs.org --tag=beta --provenance --access public + npm publish --tag=beta --access public else - npm publish --registry https://registry.npmjs.org --provenance --access public + npm publish --access public fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: 📜 Log Version Exists if: env.status == '200'