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}}