From d2c0a29dcf9cc6b8754f3443a3c6bf96b5d6c85c Mon Sep 17 00:00:00 2001 From: Firoz Ahmed Date: Mon, 3 May 2021 18:03:43 +0530 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 6726ca7..3bef42e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,11 +1,8 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - -name: Node.js Package +name: "🚀 release" on: - release: - types: [created] + release: + types: [published] jobs: release: @@ -20,6 +17,6 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org - name: 🚀 publish - run: npm publish + run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}