npm install -g teamcity-package-reporter
Change directory into a folder with an existing package.json file and then execute teamcity-package-reporter
. It will report the following paramaters to TeamCity:
PACKAGE_NAME
: The packages name attribute.PACKAGE_DESCRIPTION
: The packages description attribute.PACKAGE_VERSION
: The packages version attribute.PACKAGE_LICENSE
: The packages license attribute.
Therefore, to use it, make sure that you add parameters with the same names in TeamCity and then execute the command as one of your build tasks.