Set version for file when i get build

Hello
One of my problem is, when i change on my game and build it, be cause of caching i need to add version to url of files
for example i change all js files from this “.js” to this “.js?v=10”

is there any way to set version for files when i get build ?