0.1.1 • Published 5 years ago
@n370/npm-publish-slack-webhook v0.1.1
npm publish Slack Webhook
How to use
npm install @n370/npm-publish-slack-webhookOpen your package's package.json and add a postpublish script to it;
{
"scripts": {
"postpublish": "npm-publish-slack-webhook <your-slack-webhook-url>"
}
}Every time you run npm publish and successfully publish a new package version you should get a message on slack like:
package@x.x.xhas been published!
Testing
With npx
npx @n370/npm-publish-slack-webhook <your-slack-webhook-url>Against a local server
Start the test server included with the source files
node tests/server.jsOpen another terminal tab, link the library using npm link and test it against the local server.
npm-publish-slack-webhook "http://localhost:1337/"