diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a8878a7..0bc7e52 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,11 +2,8 @@ name: Node.js Package on: - # release: - # types: [created] - push: - branches: - - github-actions-test + release: + types: [created] jobs: build: runs-on: ubuntu-latest @@ -18,6 +15,6 @@ jobs: node-version: '12.18.4' registry-url: 'https://registry.npmjs.org' - run: npm install - - run: npm run publish-dry + - run: npm run publish-public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}