Socket
Book a DemoInstallSign in
Socket

semantic-sf-cli

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-sf-cli

setup automated semver compliant package publishing

1.4.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

semantic-sf-cli

Build Status NPM

Install

npm install -g semantic-sf-cli

cd your-module
semantic-sf-cli setup

dialogue

Options

Usage:
  semantic-release-cli setup [options]

Options:
  -h --help           Show this screen.
  -v --version        Show version.
  --[no-]keychain     Use keychain to get passwords [default: true].
  --ask-for-passwords Ask for the passwords even if passwords are stored [default: false].
  --tag=<String>      npm tag to install [default: 'latest'].

Aliases:
  init                 setup

What it Does

semantic-sf-cli performs the following steps:

  • Asks for the information it needs. You will need to provide it with:
    • Whether your GitHub repository is public or private
    • Your GitHub username
    • Your GitHub password (unless passwords were previously saved to keychain)
    • Your Script Fodder API Key
  • Save your passwords to your local OS's keychain using keytar for future use (unless --no-keychain was specified)
  • Create GitHub Personal Token
  • Update your package.json
    • Remove version field (you don't need it anymore -- semantic-release will set the version for you automatically)
    • Add a semantic-release script: "semantic-release": "semantic-release pre && npm publish && semantic-release post"
    • Add semantic-release as a devDependency
    • Add or overwrite the repository field
  • Login to Travis CI to configure the package
    • Enable builds of your repo
    • Add GH_TOKEN and NPM_TOKEN environment variables in the settings

Other CI Servers

By default, semantic-release-cli supports the popular Travis CI server. If you select Other as your server during configuration, semantic-release-cli will print out the environment variables you need to set on your CI server. You will be responsible for adding these environment variables as well as configuring your CI server to run npm run semantic-release after all the builds pass.

Note that your CI server will also need to set the environment variable CI=true so that semantic-release will not perform a dry run. (Most CI services do this by default.) See the semantic-release documentation for more details.

License

MIT License 2015 © Christoph Witzko and contributors

https://twitter.com/trodrigues/status/509301317467373571

Keywords

author

FAQs

Package last updated on 03 Apr 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.