Skip to content

Automate the version injecting workflow #4

@zmrhaljiri

Description

@zmrhaljiri

The WebpackAutoInject plugin is increasing the version property in package.json.

There are 3 available options, each increasing different number:

  • Major - from 1.0.0 to 2.0.0
  • Minor - from 1.0.0 to 1.1.0
  • Patch - from 1.0.0 to 1.0.1

Currently, every time build is run, it increases the version by 1 (patch option).

Suggestion is to create an argument to the build script that would apply the specified option. Also with letting patch to by the default option.

Examples:
npm start build - default, for patch change
npm start build --env.minor - for minor change
npm start build --env.major - for major change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions