From 29f7438478ad156dd17cdfdc850675e78207e682 Mon Sep 17 00:00:00 2001 From: Patrick Mowrer Date: Tue, 16 Jan 2024 14:14:01 -0500 Subject: [PATCH 1/2] docs(README): Remove Travis CI link from tests badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f497326..97489a0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # semantic-release-github-pr -[![Tests workflow](https://github.com/pmowrer/semantic-release-github-pr/actions/workflows/tests.yml/badge.svg)](https://travis-ci.org/pmowrer/semantic-release-github-pr) [![npm](https://img.shields.io/npm/v/semantic-release-github-pr.svg)](https://www.npmjs.com/package/semantic-release-github-pr) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +![Tests workflow](https://github.com/pmowrer/semantic-release-github-pr/actions/workflows/tests.yml/badge.svg) [![npm](https://img.shields.io/npm/v/semantic-release-github-pr.svg)](https://www.npmjs.com/package/semantic-release-github-pr) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) Preview the semantic release notes that would result from merging a Github PR. From 179c870fac2b4f8b536bdc731f24b6003e0b8cd4 Mon Sep 17 00:00:00 2001 From: Patrick Mowrer Date: Tue, 16 Jan 2024 14:16:40 -0500 Subject: [PATCH 2/2] ci: Run release workflow on push instead of pull_request If `semantic-release` detects running on a PR, it will prevent a release. --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c202fc..a5c9b6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,12 @@ name: Release on: - pull_request: + push: branches: - master - types: - - closed - + jobs: release: - if: github.event.pull_request.merged == true runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}