diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 04689ac..f6abff7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,6 +8,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 + id: release with: release-type: node - package-name: release-please-action + 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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 5575f6b..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release - -on: - release: - types: - - published - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/build - - - run: pnpm test - - run: pnpm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}