Socket
Book a DemoInstallSign in
Socket

semantic-release-hex

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release-hex

semantic-release plugin to publish a hex package

2.0.0
next
alpha
latest
Source
npmnpm
Version published
Weekly downloads
61
-39.6%
Maintainers
1
Weekly downloads
 
Created
Source

semantic-release-hex

semantic-release plugin to publish a hex package

Latest Version Next Version Build CodeQL Coverage OpenSSF Scorecard Discord

Warning Publishing to hex has not yet been implemented, so this package only bumps the version in mix.exs and README.md for now.

StepDescription
verifyConditionsVerify the presence of the mix.exs file and that the version is parsable.
prepareUpdate the version in mix.exs.
publishto be implemented (PRs welcome)

Installation

npm install semantic-release-hex -D

For a more detailed setup guide, see Setting up an existing Elixir project.

Usage

Add the plugin to the semantic-release configuration file (see example below).

Warning Make sure you put the semantic-release-hex plugin above @semantic-release/git and @semantic-release/github, or the updated mix.exs file won't be included in the commit/tag/release.

Example

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    "semantic-release-hex",
    [
      "@semantic-release/git",
      {
        "assets": ["CHANGELOG.md", "mix.exs"],
        "message": "chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
      }
    ],
    "@semantic-release/github"
  ]
}

Supported version formats

mix.exs

Regular

  def project do
    [
      version: "0.4.2",
    ]
  end

Module attribute

  @version "0.4.2"

  def project do
    [
      version: @version,
    ]
  end

README.md

```elixir
  def deps do
    {:hello_world, "0.4.2"},
    {:hello_world, "~> 0.4.2"},
    {:hello_world, git: "https://github.com/hello_world/hello_world.git", tag: "v0.4.2"},
  end
```

Community

Join the Discord server! Here you can discuss issues and get help in a more casual forum than GitHub.

Contributing

This project is looking for help! If you're interested in helping with the project, please take a look at our contributing documentation.

Submitting Bugs/Issues

Please have a look at our contributing documentation, it contains all the information you need to know before submitting an issue.

Keywords

hex

FAQs

Package last updated on 09 Jan 2025

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.