From 36b43fdd2f971b1e75bda8851a2105129af50f22 Mon Sep 17 00:00:00 2001 From: Marcelo Jorge Vieira Date: Wed, 4 Jan 2023 17:33:11 -0300 Subject: [PATCH] Bump .github/workflows/npm_publish.yml https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-using-yarn --- .github/workflows/npm_publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}}