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 8, 2023
1 parent 9d9ffa7 commit c8fd330
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,16 @@ jobs:
- name: Update Package Version
run: |
tag_name=${{ steps.extract_tag.outputs.tag }}
sed -i "s/\"version\": \".*\"/\"version\": \"$tag_name\"/" package.json
# - name: Commit package version
# run: |
# # Commit the changes
# git config user.name "GitHub Actions"
# git config user.email "actions@users.noreply.github.com"
# git checkout -b $branch_name
# git add package.json
# git commit -m "Update package version to $tag"
# git push origin $branch_name
sed -i "s/\"version\": \".*\"/\"version\": \"$tag\"/" package.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update package version to $tag"
title: "Update package version to $tag"
body: "This PR updates the version in package.json to $tag."
commit-message: "Update package version to ${{ steps.extract_tag.outputs.tag }}"
title: "Update package version to ${{ steps.extract_tag.outputs.tag }}"
body: "This PR updates the version in package.json to ${{ steps.extract_tag.outputs.tag }}."
branch: ${{ steps.set_branch_name.outputs.branch_name }}
base: "main"

Expand Down

0 comments on commit c8fd330

Please sign in to comment.