diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc76f34..ede37fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,11 +18,11 @@ jobs: - ubuntu-latest steps: - - name: Check branch name # make sure the release can only be run on branches like 'release-*' + - name: Check branch name # make sure the release can only be run on branch named 'release' run: | ref="${{ github.ref }}" - if [[ ! "$ref" =~ ^refs/heads/release-* ]]; then - echo "Error: Workflow can only run on branches starting with 'release-*'" + if [[ ! "$ref" =~ ^refs/heads/release ]]; then + echo "Error: Workflow can only run on branches starting with 'release'" exit 1 fi - uses: actions/checkout@v4 diff --git a/.releaserc.json b/.releaserc.json index 9e8a618..b5cfeda 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,5 +1,5 @@ { - "branches": ["release-1"], + "branches": ["release"], "plugins": [ [ "@semantic-release/commit-analyzer",