Handle 'tree-sitter.json' in 'bump-version'

This commit is contained in:
Bruno BELANYI 2024-12-23 23:33:38 -05:00
parent 9f5e6b0141
commit f9dbeed40a

View file

@ -75,10 +75,14 @@
${pkgs.jq}/bin/jq ".version = \"''${NEW_VERSION}\"" package.json > package.json.tmp ${pkgs.jq}/bin/jq ".version = \"''${NEW_VERSION}\"" package.json > package.json.tmp
mv package.json.tmp package.json mv package.json.tmp package.json
${pkgs.jq}/bin/jq ".metadata.version = \"''${NEW_VERSION}\"" tree-sitter.json > tree-sitter.json.tmp
mv tree-sitter.json.tmp tree-sitter.json
${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" Cargo.toml ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" Cargo.toml
${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" pyproject.toml ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" pyproject.toml
git add Cargo.toml package.json pyproject.toml make
git add Cargo.toml package.json pyproject.toml tree-sitter.json src/parser.c
echo "Release ''${NEW_VERSION}" | git commit -eF - echo "Release ''${NEW_VERSION}" | git commit -eF -
git tag -a "v''${NEW_VERSION}" -m "Release ''${NEW_VERSION}" git tag -a "v''${NEW_VERSION}" -m "Release ''${NEW_VERSION}"
''; '';