Skip to content

Commit

Permalink
Remove v prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 4, 2021
1 parent 80363ea commit 101b51a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
if: startsWith(github.event.inputs.version, 'v')
run: |
VERSION_REGEX=" \* Version: [0-9]\+\.[0-9]\+\.[0-9]\+\s*"
sed -i "s/${VERSION_REGEX}/ * Version: ${VERSION}/g" gutenberg.php
cat <<< $(jq --tab --arg version "$VERSION" '.version = $version' package.json) > package.json
cat <<< $(jq --tab --arg version "$VERSION" '.version = $version' package-lock.json) > package-lock.json
sed -i "s/${VERSION_REGEX}/ * Version: ${VERSION#v}/g" gutenberg.php
cat <<< $(jq --tab --arg version "${VERSION#v}" '.version = $version' package.json) > package.json
cat <<< $(jq --tab --arg version "${VERSION#v}" '.version = $version' package-lock.json) > package-lock.json
- name: Commit the version bump
if: startsWith(github.event.inputs.version, 'v')
Expand Down

0 comments on commit 101b51a

Please sign in to comment.