From fe0fb941ed6447e69adb908e7ad2f9df742c77cf Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Mon, 6 Mar 2023 09:53:41 +0100 Subject: [PATCH] fix: release --- .github/workflows/release-please.yml | 15 ++++++++++++++- .github/workflows/release.yaml | 18 ------------------ 2 files changed, 14 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/release.yaml 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 }}