Skip to content

Version bumping command #17

Open
Open

Description

@erikh2000

Requires decent-portal changes from #16

In decentapp-template, we'd like a package.json command like "npm run bump-version" that increments the version both in package.json and the public/app-metadata.json file.

It should increment just the last number in a version string, e.g. "1.0.1" -> "1.0.2".

You could do it different ways, but probably a Node script works fine. The convention I've used in other projects is putting these "DevOps" or non-run-time scripts under "/scripts". Then from package.json, define a command like "node ./scripts/bumpVersion.ts". If you want to use Typescript, it's okay to require v22 or higher of Node supporting type-stripping.

@eduardoworrel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions