npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

leiningen-semantic-release

v1.0.4

Published

Automated release management for leiningen projects

Downloads

4

Readme

leiningen-semantic-release

semantic-release plugin to publish a leiningen project.

CircleCI Greenkeeper badge codecov type-coverage

npm)

| Step | Description | | ------------------ | ---------------------------------------------------------------------------------- | | verifyConditions | Checks the project.clj is syntactically valid. | | prepare | Update the project.clj version and package the output jar file. | | publish | Publish the jar (and generated Maven metadata) to a maven repository (or clojars). |

Install

$ npm install leiningen-semantic-release -D

Usage

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

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "leiningen-semantic-release",
    "@semantic-release/git",
    {
      "assets": ["project.clj"]
    }
  ]
}

Configuration

Registry authentication

Authenticating with the registry is configured using the :deploy-repositories map in project.clj.

The recommended way to pass these variables in is by using environment variables.

Environment variables

| Variable | Description | | ----------------- | ------------------------------------------------------------------------------------------------- | | LEIN_USERNAME | The username for the maven repository you are publishing to (or clojars). | | LEIN_PASSWORD | The password for the maven repository you are publishing to (or clojars). | | LEIN_PASSPHRASE | A gpg passphrase to retreive the username and password with. (if retreiving credentials from gpg) |

As mentioned in the leiningen documentation, your :deploy-repositories section of project.clj should be set up to use environment variables.

For example to use LEIN_USERNAME and LEIN_PASSWORD your config might look like this.

:deploy-repositories [["releases" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
                                   :username :env
                                   :password :env}
                       "snapshots" {:url "https://oss.sonatype.org/content/repositories/snapshots/"
                                    :username :env
                                    :password :env}]]

If you want retrieve the username and password from gpg, you can set the LEIN_PASSPHRASE environment variable and use config like the following.

:deploy-repositories [["releases" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
                                   :creds :gpg
                                   :passphrase :env}
                       "snapshots" {:url "https://oss.sonatype.org/content/repositories/snapshots/"
                                    :creds :gpg
                                    :passphrase :env}]]

The example project shows an example of how to get signing working properly using environment variables on CircleCI.

It techniques used there should apply to most build environments running on Linux.

Options

| Options | Description | Default | | ------------ | -------------------------------------------------------------------------------------------------------------------------------- | ------- | | skipDeploy | Whether to publish the package to a respository with lein deploy. If true the project.clj version will still be updated. | true | | pkgRoot | Directory path to publish. | . | | uberJar | Whether to package the project as an uber jar (include dependencies in the jar) | false |

Note: The pkgRoot directory must contains a project.clj. The version will be updated only in the project.clj within the pkgRoot directory.

Note: If you use a shareable configuration that defines one of these options you can set it to false in your semantic-release configuration in order to use the default value.

Example

There is an example project at: https://github.com/NoxHarmonium/leiningen-semantic-release-test-clojars