New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

greenkeeper-postpublish

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greenkeeper-postpublish

postpublish hook for announcing new versions to greenkeeper

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-15.69%
Maintainers
2
Weekly downloads
 
Created
Source

greenkeeper-postpublish

Greenkeeper badge

Set up greenkeeper-postpublish

To install greenkeeper-postpublish save it to your devDependencies:

npm install greenkeeper-postpublish --save-dev

Then add it to your scripts in your package.json:

  "scripts": {
    "postpublish": "greenkeeper-postpublish --secret=$GK_NPMHOOK_SECRET --installation=$GK_INSTALLATION_ID"
  }

You can also set the secret and installation values in your publish environment:

gk_secret=$GK_NPMHOOK_SECRET
gh_installation=$GK_INSTALLATION_ID

Where the GK_NPMHOOK_SECRET is set in your Greenkeeper Enterprise Admin Dashboard at https://gke.your-company.com:8800 and GK_INSTALLATION_ID can be found in your GitHub Enterprise setup on the organisation for your modules: https://ghe.your-company.com/organizations/$organisation_name/settings/installations -> Greenkeeper -> the integer number in the URL.

When set up like this, every time your release the package (with npm publish), it will let Greenkeeper know that there is a new version available.

Manual use

You can also run it outside of the package.json scripts. You will need to install it with the --global flag then though:

npm install greenkeeper-postpublish --global

If you run greenkeeper-postpublish in a directory with a package.json it will parse it and use its name and version.

You can also specify the --pkgname and --pkgversion parameters instead:

greenkeeper-postpublish --pkgname mypackage --pkgversion 4.2.0 --secret=abcd --installation=54321

🌴

Keywords

FAQs

Package last updated on 17 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc