Skip to content

alvesph/automatic-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Version

npm i release-it @release-it/conventional-changelog @commitli
nt/config-conventional @commitlint/cli --include=dev
  "release-it": {
    "git": {
      "commitMessage": "chore: release v${version}"
    },
    "github": {
      "release": true
    },
    "npm": {
      "publish": false
    },
    "plugins": {
      "@release-it/conventional-changelog": {
        "infile": "CHANGELOG.md",
        "preset": {
          "name": "conventionalcommits",
          "types": [
            {
              "type": "feat",
              "section": "Features"
            },
            {
              "type": "fix",
              "section": "Bug Fixes"
            },
            {}
          ]
        }
      }
    }
  }
npm i husky --save-dev
#isso permite executar comandos com base em ações de confirmação
./node_modules/husky/lib/bin.js install
#verificar as mensagens de confirmação
touch .husky/commit-msg && chmod a+x .husky/commit-msg
#fala para o husky para executar comando commitlint no commit

#!/bin/sh
. "${dirname "$0"}/_/husky.sh"

npx commitlint --edit
#roda a release
npm run release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages