diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 8421160..fa49d47 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -1,16 +1,11 @@ name: Publish on: - push: - branches: - - release - -env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + release: + types: [published] jobs: build: - runs-on: ubuntu-latest steps: @@ -28,3 +23,5 @@ jobs: path: build - name: Publish run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}