Solved it by passing --dist <version> in the upload-sourcemaps command.
--dist <version>
upload-sourcemaps