:atom: semantic-release plugin to publish Atom packages with with apm
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.npmrc
.travis.yml
.yarnrc
LICENSE
README.md
index.js
package.json

README.md

@semantic-release/apm

semantic-release plugin to publish Atom packages with with apm.

Travis Codecov Greenkeeper badge

npm latest version npm next version

Step Description
verifyConditions Verify the presence of the ATOM_ACCESS_TOKEN environment variable and the apm CLI.
prepare Update the package.json version with npm version.
publish Publish the Atom package.

Install

$ npm install @semantic-release/apm -D

Usage

The plugin can be configured in the semantic-release configuration file:

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

Configuration

Apm installation

The plugin uses the apm CLI which has to be installed in your CI environment and available in the PATH.

See the Atom Package CI Scripts documentation to install apm in your CI.

Note: If you are running multiple versions of Atom in CI (for example, Stable and Beta), ensure that the semantic-release command is run on a build using the Stable channel of Atom as the Beta channel builds only provide apm-beta. If you are using travis-deploy-once this can be achieved by setting the Stable channel build to be the last build to run, or by using the buildLeaderId option.

Atom authentication

The Atom authentication configuration is required and can be set via environment variables.

Visit your account page on Atom.io to obtain your authentication token. The token has to be made available in your CI environment via the ATOM_ACCESS_TOKEN environment variable.

Environment variables

Variable Description
ATOM_ACCESS_TOKEN The token used to authenticate with Atom registry.