This PR fixes the release script:
The command grep -m1 version package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g' find the first occurrence of the pattern version. This means that if we have before the "version" line a value with the "version" pattern it will return it. The command is changed to find the pattern "version" instead.
Example, if the package.json has this before the version key, it will not return the version value:
"name": "foo-version-bar".
Description
This PR fixes the release script: The command
grep -m1 version package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g'
find the first occurrence of the patternversion
. This means that if we have before the "version" line a value with the "version" pattern it will return it. The command is changed to find the pattern"version"
instead.Example, if the
package.json
has this before theversion
key, it will not return theversion
value:"name": "foo-version-bar"
.