From b3539bb5ca9ef88615af4690c80ad7636ab7908c Mon Sep 17 00:00:00 2001 From: "C++, JS, TS, Python Developer" <65385476+killer069@users.noreply.github.com> Date: Sat, 21 Aug 2021 15:40:49 +0530 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1b7d373..e59763a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -17,6 +17,18 @@ jobs: node-version: 16 - run: npm ci - run: npm run build + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}