diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f210715e..536885c9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,9 +1,8 @@ name: Publish to NPM on: - push: - tags: - - 'v*' + release: + types: [created] jobs: publish-npm: @@ -13,7 +12,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: 'https://registry.npmjs.org' + registry-url: https://registry.npmjs.org - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}