@postman/yankee

1.1.0 • Public • Published

yankee

Easy release management with YAML changelogs

Installation

# As a global command:
npm install --global @postman/yankee

# …or locally for an npm project:
npm install --save-dev @postman/yankee

Usage

yankee [<path>]
yankee --help

Description

The file Changelog.yaml is the single source of information about your releases. It should be an object with one key per release and an optional unreleased: key at the top. Here’s an example:

unreleased:
  new features:
    - The cool new flag `--verbose`.

2.0.1:
  date: 1992-02-09
  fixed bugs:
    - Got rid of a nasty IO bug.
    - Improved the docs.

2.0.0:
  date: 1982-03-15
  breaking changes:
    - API redesign. See the readme for details.

1.0.0:
  date: 1970-01-01
  note: Initial release.

When you call yankee, we’ll determine what version number comes next and update the file accordingly. We’ll replace unreleased: with the new version and add a date: property with the current day right below that.

If the unreleased: object contains the key breaking changes:, we’ll make it a major release (X.y.z). If it contains the key new features:, we’ll make a minor bump (x.Y.z). Otherwise, make sure your unreleased: changelog has the key fixed bugs: - we’ll release it as a patch (x.y.Z).

The version number against which we’ll be bumping is the first key in your Changelog.yaml except unreleased:. If there’s no other key, we’ll always tag the release as 1.0.0.

If you call yankee without any options, we’ll only output the version number, so that it’s easy for you to process with scripts.

Options

[path]

The path to your project directory. Should contain a Changelog.yaml. Default: $(pwd).

-n, --npm

Attempt to update the version field in package.json and npm-shrinkwrap.json.

-c, --commit

Commit changes. The commit message will be the raw version number.

-t, --tag

Tag the commit with an annotated tag. The tag name will be the raw version number preceeded with a “v”. Implies --commit.

-h, --help

You’re looking at it.

Example

Here a simple example using cat and here docs. When creating your package, you start off with a simple changelog:

$ cat << --- > Changelog.yaml
  unreleased:
    note: Initial release.
  ---

When you’re ready for a 1.0.0 release, just call yankee:

$ yankee
  1.0.0

$ cat Changelog.yaml
  1.0.0:
    date: 2016-05-20
    note: Initial release.

Working on new stuff, update the changelog accordingly:

$ cat << --- > Changelog.yaml
  unreleased:
    new features:
      - Cool new stuff!

  $(cat Changelog.yaml)
  ---

When ready for a release, yankee will figure out what the release number should be:

$ yankee
  1.1.0

$ cat Changelog.yaml
  1.1.0:
    date: 2016-05-20
    new features:
      - Cool new stuff!

  1.0.0:
    date: 2016-05-20
    note: Initial release.

Package Sidebar

Install

npm i @postman/yankee

Weekly Downloads

378

Version

1.1.0

License

MIT

Unpacked Size

12.8 kB

Total Files

6

Last publish

Collaborators

  • steeve.bete
  • zubair.lawrence
  • mxdavis
  • mxdavis-postman
  • shy.alter.postman
  • eric-postman
  • dmytro.markov
  • abhishek.pawar
  • abhishek.raj87
  • eddie.davies
  • shubham.shukla-postman
  • basile.barrincio
  • hoanguyenn
  • shreyansh.goyal
  • harikrishna.postman
  • sajal001
  • michaelhudelsonpostman
  • dima-postman
  • ihor.mariichyn
  • andrii.lymych
  • michael.browning
  • yevhenii.stepanov
  • arpit.sahu
  • akshat-nema
  • postman-web-platform-functional-account
  • ian.cundiff
  • rebecca.krosnick
  • soriat
  • meetsuraj2
  • nitish-postman
  • shub_postman
  • joshnedelkapostman
  • kevin.corbett
  • carlos.garcia.postman
  • anirudh.ms
  • akira28
  • cecilytoro
  • sumedha.kulkarni
  • suman.das
  • yashishdua
  • rljohnsn
  • salomekbg_postman
  • vtyson
  • indraneel_postman
  • grantkingpostman
  • shivangibajpai12
  • abhilash-postman
  • raghavendra-postman
  • ravi-postman
  • jedliu-postman
  • amaan.khan.postman
  • diwakarshukla_postman
  • imran.munir
  • markgritterpm
  • shruthivee
  • rajaswa
  • aki-kusanagi
  • yokawasa
  • ankit834
  • saurabh.agarwal
  • itsaamirpostman
  • postmanaut
  • noah.schwartz
  • dkrape
  • saurabh.vartak
  • wheatspaghetti
  • himanshu.ng056
  • honeynair
  • tonyzebastian
  • kasey.seo
  • parthverma
  • neha.kaura
  • josephps
  • parthpverma
  • muskaan06
  • sapnanayak
  • akshay_postman
  • jeroenvdpoll
  • harsuyash
  • ayush.chowdhury
  • plgah
  • sobtiankit
  • smoya
  • mcturco
  • skatikia
  • dhinesh.sridhar
  • aman-pm
  • alexgul4enko
  • pamzani
  • fran.mendez
  • jonaslagoni
  • guru.pochineni
  • navneetbhole
  • piyush.daga
  • himanshu.vishwakarma
  • shraddha-arora-postman
  • anshitbansal
  • prathameshh
  • nitishpostman
  • yashja.in
  • varshini59
  • aviralpostman
  • theerthasenan
  • shikharpostman
  • amanpostman
  • greenblade29
  • anuragmewar
  • chris_pm
  • jk-postman
  • tphipps
  • akshay.kulkarni
  • vedkribhu
  • samarth.gulati
  • razvi07
  • cleverom
  • planetabhi
  • tiara.johnson
  • joe.fusco
  • jonathanhaviv
  • mudit.joshi
  • piyush.r
  • anjali2022
  • gkorosc-postman
  • raisinten
  • itsaamir
  • vinayak.parashar
  • rafaeltf
  • apoorv.gupta.postman
  • adrian.santana
  • kylerrenn94
  • jelle.vandevelde
  • atanas.a
  • samithjaganath
  • pranavj2000
  • pwitcher
  • anandh619
  • diegog24
  • atchyut.pulavarthi
  • kevinswiber-postman
  • sanketpath
  • opi-danihelka
  • arvind.khadri
  • cboornazian
  • irena-postman
  • rohan.grover
  • vincentbarth
  • aniketbewal
  • romulo-nascimento
  • ruben.baraut
  • arsh_13
  • tapanchudasama
  • akash.rajpurohit_postman
  • rtlockwood
  • harshit.kochar
  • auddypostman
  • patricksevat
  • akinard-pm
  • ayush.jain
  • laszlogreczi
  • bhoomikaduapostman
  • roy-himanshu
  • nidhi_goyal
  • alexander-rubia
  • arjun.golabhanvi
  • anil.jnanoji
  • gbadebo.bello
  • ravi.prasad
  • jatin-postman
  • bharadwajpoduri7
  • liteshpatil17
  • tilak-patel-postman
  • hasnain.rajan
  • elizabeth.fung
  • manavbharambe
  • preetham.m
  • dhuhindhan.ilango
  • nishat.sayyed
  • rubencasas
  • sterling.chin-postman
  • anubhav-vats
  • adityabaradwaj
  • timhall
  • asutosh.sahoo
  • prasant.patel
  • bot_marketing_engineering
  • shreyansh_post
  • vaishnavichalla
  • lorenzo.ambrosi
  • arnaudlauret_postman
  • christina.hastenrathplus1
  • postman-dakshraj.sharma
  • ekansh-01
  • devsharma
  • ayushman9454
  • tonygo
  • postmanian
  • davidtran33
  • rutvik_gs
  • dsanders11
  • akkeshavan
  • rishabh.shukla
  • riyasaini
  • yash-postman
  • karnsharma
  • priyambadamadala
  • suhas_gaikwad
  • umeshp7
  • darshan.sen
  • yatin1997
  • kartikj
  • saswatds
  • sujayvenaik
  • kratigya
  • shubham.ranjan
  • davidespi
  • numaanashraf
  • shamasis
  • godfrzero
  • abhijitkane
  • kunagpal
  • hg07
  • kamalaknn
  • nikithaachhini
  • shreyas.panduranga
  • pratiksolim
  • sivcansingh
  • bhargavkaranam96
  • ronak.npm
  • codenirvana
  • tristandenyer
  • sabih.siddiqui
  • shashwat.dixit
  • kriss1897
  • gunjan4542
  • meetdeveloper
  • pawanbana
  • shreyshah
  • vshingala
  • barshan23
  • coditva
  • skrpl
  • jibinmathews7
  • diuda
  • postbot-bitbucket
  • postbot-buildkite
  • dannydainton
  • brandonmcastillo
  • michaelclaus
  • devansh21
  • arshad.ayub
  • sharma.nikhil1997
  • smitshah173
  • atishay-postman
  • saket_ranjan
  • dhawan29
  • arlemi.postman
  • akshaytate01
  • pankajk0791
  • mdamankh
  • apoorvajain08
  • james-postman
  • arvind-kalra
  • diptarag
  • dip_postman
  • akshay24
  • chetan.waingankar
  • axelonet
  • balakrishna.avulapati
  • harsha.dixit
  • saialekhya.yerragunta
  • pranav.singhal
  • amrindersandhu
  • deepanshurana
  • mudit1804
  • prashant-raghu
  • waseem.siddiqui
  • hemendra.kumar
  • bswisher
  • himanshu0809
  • avinashchoudhary
  • gouthamaj
  • shubham.joshi
  • ankitsaini
  • dev-pawankumar
  • tim.beauchamp
  • iamnishantgarg
  • amrit_vyas
  • ayush.raj
  • brent.cromarty
  • sandeep.singh
  • abhijeetborole
  • mehul.agrawal
  • sonymathew
  • hardik286
  • appurvamurawat
  • poojat
  • phani-postman
  • chinmayj195
  • harsh_bansal
  • srinivas.kini
  • jony.cheung.postman
  • rrc083
  • diya.ninan
  • shruti_paranjape
  • utsav.kapoor1994
  • abhishek_s
  • subhash.yadav
  • pankajkumar05
  • prithvi.tharun
  • ashish.gupta1
  • joshuawise_postman
  • bot.npm.cf.starship
  • divy.khare
  • meenakshi.dhanani