From 98d100e306042c5987aaad3c6128377e0a974cd8 Mon Sep 17 00:00:00 2001 From: Natesh Mogera Date: Thu, 31 Aug 2023 14:39:36 +0530 Subject: [PATCH] updated npm-publish workflow --- .github/workflows/publish-npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 0735316..a8e94fd 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -1,7 +1,7 @@ name: Publish to NPM on: release: - types: [created] + types: [published] jobs: publish: runs-on: ubuntu-latest @@ -16,6 +16,6 @@ jobs: - name: Install dependencies 🔧 run: npm ci - name: Publish package on NPM 📦 - run: npm publish --access public + run: npm run npm-publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}