1.0.0 • Published 4 years ago

@kai/show-next-version v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@kai/show-next-version

Preview what semantic-release thinks the next version will be for the current branch. And don't actually release anything.

Run it locally:

npx @kai/show-next-version

Run it in a GitHub Action:

    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
     - name: Setup Node.js
        uses: actions/setup-node@v2
        with:
          node-version: 15
      # ... others
      # ... steps
      - name: Preview next version and changelog
        run: npx @kai/show-next-version

IMPORTANT: it is assumed that you are already using semantic-release, so it is listed as a peerDependency in this package. Automatic peer depedency installation is a feature of npm v7.x, so at least that version is required to run this package via npx. You can get npm v7.x automatically by using node 15.x in your action.