on: push: branches: - main name: release-please jobs: release-please: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 id: release with: release-type: node package-name: formhero - uses: actions/checkout@v3 if: ${{ steps.release.outputs.release_created }} - uses: ./.github/actions/build if: ${{ steps.release.outputs.release_created }} - run: pnpm test if: ${{ steps.release.outputs.release_created }} - run: pnpm publish if: ${{ steps.release.outputs.release_created }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}