diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7544562e..01abf917 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: inputs: type: @@ -25,12 +28,15 @@ jobs: fetch-depth: 0 token: ${{ secrets.PAT }} - name: Install Knope - uses: knope-dev/action@v2 + uses: knope-dev/action@v2.0.0 with: version: 0.16.0 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version - run: | git config --global user.name "${{ github.triggering_actor }}" git config --global user.email "${{ github.triggering_actor}}@users.noreply.github.com" + - name: Dry-run Release + run: knope release --verbose --dry-run + if: github.event_name == 'pull_request' - name: Prepare Prerelease run: knope release --verbose --prerelease-label=rc if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.type == 'prerelease')