What is the fastest way to release a new package version on pub.dev?

151 views Asked by At

I have published a package to pub.dev and I am making small changes. What is the easiest way to change all the package numbers in all the files? I usually search for the current version number in all files, for example 1.0.3 and replace it with 1.0.4, but this looks tedious. I am wondering if there is a better way? Like a function that updates the version with 1+.

1

There are 1 answers

1
Gwhyyy On

If you're using vscode, you could make a replace all operation over all files :

  1. first, click the search icon on the left bar

vscode

  1. fill in the text you want to search and the text which you want to change with

vscode

  1. Click the replace all button

vscode