byCedric/semantic-release-expo

View on GitHub
src/version-bumpers/version.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { VersionBumper } from '../types';
import { calculateVersion } from '../version';

const bumpVersion: VersionBumper = (meta, config, context) => {
    const newVersion = calculateVersion(meta, config, context);

    context.logger.log(
        '%s manifest version changed (%s => %s) in %s',
        'Expo',
        meta.manifest.version,
        newVersion,
        meta.filename,
    );

    return { ...meta.manifest, version: newVersion };
};

export default bumpVersion;