diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 564d67a..d76b9ed 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,9 +1,8 @@ name: Publish on NPM on: - push: - branches: - - master + release: + types: [created] jobs: publish-npm: @@ -14,7 +13,6 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm test - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}