A script to update the version number of your flutter project's pubspec.yaml file, done with JavaScript.
- Clone this project.
git clone https://github.com/Novak-Fenocchio/Flutter-auto-update-version.git
- Download libraries:
npm install
- Set env var:
You need to define your pubspect.yaml's path, of your app. the var is called "pubspecPath"
- Run script:
node index.js
The main utility use for this script is in a git hook, in my case, in a pre-commit hook. To set this up, you can follow the instructions in this blog post, written by me.