Expo build:android not reading versionCode correctly

When doing an expo build:android the build continously sets the version to 1.6.0 which is versionCode 2 but the app.lson file sets the version to 1.6.2 and versionCode 3. is the expo bukid caching old files. when i submit with EAs i get
You’ve already submitted this version of the app.
Versions are identified by Android version code (expo.android.versionCode in app.json).