Skip to content

Commit

Permalink
Update publish-library.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallpete authored Nov 7, 2023
1 parent 2989605 commit 39c41d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
run: |
echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"
- name: Set Branch Name
id: set_branch_name
run: |
echo "branch_name=release-$tag" >> "$GITHUB_ENV"
- name: Update Package Version
run: |
sed -i "s/\"version\": \".*\"/\"version\": \"$tag\"/" package.json
Expand All @@ -35,11 +40,10 @@ jobs:
# Commit the changes
git config user.name "GitHub Actions"
git config user.email "[email protected]"
echo "branch_name=release-$tag" >> "$GITHUB_ENV"
git checkout -b $branch_name
git add package.json
git commit -m "Update package version to $tag"
git push origin $branch_name
git push origin "$branch_name"
- name: Create Pull Request
Expand Down

0 comments on commit 39c41d9

Please sign in to comment.