diff --git a/.github/workflows/publish-library.yml b/.github/workflows/publish-library.yml index 1fa49bec5..d43b3544b 100644 --- a/.github/workflows/publish-library.yml +++ b/.github/workflows/publish-library.yml @@ -36,10 +36,11 @@ jobs: # Commit the changes git config user.name "GitHub Actions" git config user.email "actions@users.noreply.github.com" - git checkout -b release/$tag + branch_name="release-$tag" + git checkout -b $branch_name git add package.json git commit -m "Update package version to $tag" - git push origin release/$tag + git push origin $branch_name - name: Create Pull Request @@ -49,7 +50,7 @@ jobs: commit-message: "Create PR to update version to $tag" title: "Update version to $tag" body: "This PR updates the version in package.json to $tag." - branch: release/$tag + branch: $branch_name base: "main"