diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index ee171b08..be0d6b0e 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -2,18 +2,18 @@ name: Publish NPM package on: release: - types: [prereleased, published] + types: [created] jobs: npm-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1.1.0 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version: '16.x' registry-url: https://registry.npmjs.org/ - run: yarn install - - run: npm publish --access public + - run: yarn publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}