diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc76f34..4cdfb49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,8 @@ jobs: - name: Check branch name # make sure the release can only be run on branches like '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..2354f8e 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,5 +1,5 @@ { - "branches": ["release-1"], + "branches": ["release"], "plugins": [ [ "@semantic-release/commit-analyzer", @@ -36,5 +36,5 @@ ] ], "debug": true, - "dryRun": false + "dryRun": true }