2.0.0 • Published 4 months ago

semantic-release-cocoapods v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 months ago

npm latest version

semantic-release-cocoapods

semantic-release plugin to publish a cocoapods package.

StepDescription
verifyConditionsVerify pod command exists, COCOAPODS_TRUNK_TOKEN environment variable is set, pod trunk me is successful. Run pod lib lint to verify the pod is ready to publish.
prepareUpdate the podspec version.
publishPublish the cocoapods pod to the registry.

Install

$ npm install semantic-release-cocoapods -D

Usage

First, make sure that cocoapods is installed on your machine.

Next, add the plugin to your semantic-release configuration file.

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "semantic-release-cocoapods"
  ]
}

Configuration

Environment variables

To use this plugin and ultimately publish a cocoapods package, you must set these environment variables.

VariableDescription
COCOAPODS_TRUNK_TOKENCreated token to push pod to cocoapods.org.

Options

OptionsDescriptionDefault
podLintWhether to lint the pod or not.true
podLintArgsExtra arguments to pass to pod lib lint
podPushArgsExtra arguments to pass to pod trunk push
Examples

Here is an example on how to set options

{
  "plugins": [
    "@semantic-release/github",
    ["semantic-release-cocoapods", {
      "podLint": false,
      "podLintArgs": "--allow-warnings",
    }]
  ]
}