untile / js-configs

Untile configs and conventions
https://untile.pt
MIT License
1 stars 0 forks source link

Update release script #75

Open abelsoares opened 4 months ago

abelsoares commented 4 months ago

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 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".