diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 3ae89d4..ed81431 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -1,12 +1,8 @@ name: Node.js Package on: - pull_request: - branches: - - master - push: - branches: - - master + release: + types: [created] jobs: build: @@ -28,6 +24,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -42,6 +39,7 @@ jobs: node-version: 12 registry-url: https://npm.pkg.github.com/ scope: '@your-github-username' + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}