diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48bda93..aea51a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,18 +19,14 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} release-type: node bump-minor-pre-major: true - publish: - runs-on: ubuntu-latest - needs: release - if: needs.release.steps.release.outputs.release_created - steps: - uses: actions/checkout@v3 + if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v3 + if: ${{ steps.release.outputs.release_created }} with: node-version: 18 cache: npm - - run: npm ci - - run: npm run build - - run: npm publish + - run: npm ci && npm run build && npm publish + if: ${{ steps.release.outputs.release_created }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}