diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index 7074c59..57dc6b9 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -9,11 +9,10 @@ jobs: name: Build + Publish runs-on: ubuntu-latest permissions: - contents: read - packages: write - + contents: write + pull-requests: write steps: - - uses: GoogleCloudPlatform/release-please-action@v2 + - uses: google-github-actions/release-please-action@v4 id: release with: release-type: ruby @@ -27,6 +26,10 @@ jobs: with: ruby-version: 3.3 if: ${{ steps.release.outputs.release_created }} + - name: Run tests + run: | + bundle exec rspec + if: ${{ steps.release.outputs.release_created }} - name: Publish to GPR run: | mkdir -p $HOME/.gem