Skip to content

Commit

Permalink
chore: create release branch and do a release
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-zhang-at-salesforce committed Nov 21, 2024
1 parent 32dac44 commit 89007cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["release-1"],
"branches": ["release"],
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down

0 comments on commit 89007cd

Please sign in to comment.