Skip to content

Android converted to semver despite configs & iOS removes leading zeros in semver #18

@kungfuchicken

Description

@kungfuchicken

Description of the bug

Android version is bumped to semver instead of default android method.
iOS version does not respect leading zeros.

To Reproduce

installed and configured per documentation using 1.0.3

configure

// .versionrc.js

module.exports = {
  bumpFiles: [
    {
      filename: 'package.json',
    },
    {
      filename: 'app.json',
      updater: require.resolve('standard-version-expo'),
    },
    {
      filename: 'app.json',
      updater: require.resolve('standard-version-expo/android'),
    },
    {
      filename: 'app.json',
      updater: require.resolve('standard-version-expo/ios'),
    }
  ]
};

run

% npx standard-version --dry-run 
✔ bumping version in package.json from 2.2.4 to 2.2.5
✔ bumping version in app.json from 2.2.4 to 2.2.5
✔ bumping version in app.json from 380020204 to 2.2.5
✔ bumping version in app.json from 2.2.04 to 2.2.5
✔ outputting changes to CHANGELOG.md

---
### 2.2.5 (2020-09-21)
---

✔ committing app.json and package.json and CHANGELOG.md
✔ tagging release v2.2.5
ℹ Run `git push --follow-tags origin CU-buh9bc-trunk-based-ci-cd` to publish

Expected behavior

android would bump to 380020204
iOS would bump to 2.2.05

Actual behavior

android bumpe to 2.2.5
iOS bumped to 2.2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions