Socket
Socket
Sign inDemoInstall

custom-publish

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-publish

Custumized npm publishing


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

custom-publish

Custumized npm publishing

when you change version property in package.json custom-publish with auto-deploy your package to npmjs

install

npm install custom-publish

usage

npx custom-publish [custom-publish-config.js]

options

module.exports = {
  tag: true, // tag and push the version to github
  canPublish (currentVersion, newVersion) {
    if (same) console.log('current:', currentVersion, 'already deployed')
    return !same // just publush when version was changed
  },
  afterPublish (newVersion) {
    // here you can add statements to run after publishing
    console.log('deployed version:', newVersion, ' successfully')
  }
}

github tagging

to tag and push the version to github use must set environment

GITHUB_REPOSITORY=user/project
GITHUB_ACTOR=user
GITHUB_TOKEN=github token

FAQs

Package last updated on 27 Nov 2019

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