diff --git a/.github/actions/create-release-pr-for-npm/action.yml b/.github/actions/create-release-pr-for-npm/action.yml index 93a09d8..30a2126 100644 --- a/.github/actions/create-release-pr-for-npm/action.yml +++ b/.github/actions/create-release-pr-for-npm/action.yml @@ -44,7 +44,7 @@ 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 + sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json git add package.json git commit -m "chore: bump version to v$VERSION" git push origin release/${{ inputs.tag-prefix }}$VERSION