Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/actions/create-release-pr-for-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
base-branch:
required: true
description: The base branch
version-file-path:
description: The path to the version file. ex. lib/my_npm/package.json
default: "package.json"
commit-user-email:
description: The email address of the user who created the commit
default: "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down Expand Up @@ -44,8 +47,8 @@ runs:
git config --local user.email "${{ inputs.commit-user-email }}"
git config --local user.name "${{ inputs.commit-user-name }}"
git checkout -b release/${{ inputs.tag-prefix }}$VERSION
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json
git add package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" ${{ inputs.version-file-path }}
git add ${{ inputs.version-file-path }}
git commit -m "chore: bump version to v$VERSION"
git push origin release/${{ inputs.tag-prefix }}$VERSION
shell: bash
Expand Down