New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

semantic-release-presets

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release-presets

Semantic release presets and plugins for various projects.

  • 5.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

semantic-release-presets

🔧 Semantic release presets and plugins for various projects.

This is not in any way connected or related to the official semantic-release group and only maintained by me and optimized for my usage with Gitlab.

From v2 on this project contains definitions for gitlab and github. They are identically but targeting the respecting platforms.

Usage

Register the package in your package.json as followed:

  ...

  "dependencies": {
    "semantic-release-presets": "{VERSION}",
    ...

Plugins

Currently two plugins are added:

MS Teams

This was forked from https://github.com/wagaru/semantic-release-teams and updated. Furthermore it was extended with ideas from https://github.com/yllieth/semantic-release-ms-teams .

If you do not want to use this plugin, but still want to use these presets you can set the environment variable TEAMS_WEBHOOK_DISABLED to true. This will skip the steps.

Nuget

Inspired by https://github.com/iFaxity/semantic-release-nuget and https://gitlab.com/dmoonfire/semantic-release-nuget.

Custom changelog

This is very specific for my own requirements. By default this is switched off.

If you do want to use the plugin, you have to set the environment variable CUSTOM_CHANGELOG_ENABLED to true.

Presets

These presets make certain assumptions regarding your project setup. Please check them carefully if they apply to your workflows. If they do not match 100% you still can get some inspiration and adjust your configuration to your needs.

Following presets can be used:

GitHub

Full
NameDescriptionCategory
.releaserc.full.jsonSemantic release configuration with full usage configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, full
.releaserc.main-full.jsonSemantic release configuration with full usage configured to run on main branchmain, full
.releaserc.dev-full.jsonSemantic release configuration with full usage configured to run on dev branchdev, full
No NPM publish (Node)
NameDescriptionCategory
.releaserc.noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance
.releaserc.main-noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on main branchmain
.releaserc.dev-noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on dev branchdev
Deno
NameDescriptionCategory
.releaserc.deno.jsonSemantic release configuration for deno configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, deno
.releaserc.main-deno.jsonSemantic release configuration for deno configured to run on main branchmain, deno
.releaserc.dev-deno.jsonSemantic release configuration for deno configured to run on dev branchdev, deno
.NET
NameDescriptionCategory
.releaserc.dotnet.jsonSemantic release configuration for dotnet configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, dotnet
.releaserc.main-dotnet.jsonSemantic release configuration for dotnet configured to run on main branchmain, dotnet
.releaserc.dev-dotnet.jsonSemantic release configuration for dotnet configured to run on dev branchdev, dotnet
Nuget
NameDescriptionCategory
.releaserc.nuget.jsonSemantic release configuration for nuget configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, nuget
.releaserc.main-nuget.jsonSemantic release configuration for nuget configured to run on main branchmain, nuget
.releaserc.dev-nuget.jsonSemantic release configuration for nuget configured to run on dev branchdev, nuget
Python
NameDescriptionCategory
.releaserc.python.jsonSemantic release configuration for python configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, python
.releaserc.main-python.jsonSemantic release configuration for python configured to run on main branchmain, python
.releaserc.dev-python.jsonSemantic release configuration for python configured to run on dev branchdev, python
Swagger
NameDescriptionCategory
.releaserc.swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance support. An additional step to update the version in a swagger.yaml file (in root) is addedmain, dev, alpha, beta, next, maintenance, swagger
.releaserc.main-swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on main branch. An additional step to update the version in a swagger.yaml file (in root) is addedmain, swagger
.releaserc.dev-swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on dev branch. An additional step to update the version in a swagger.yaml file (in root) is addeddev, swagger

Gitlab

Full
NameDescriptionCategory
.releaserc.full.jsonSemantic release configuration with full usage configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, full
.releaserc.main-full.jsonSemantic release configuration with full usage configured to run on main branchmain, full
.releaserc.dev-full.jsonSemantic release configuration with full usage configured to run on dev branchdev, full
No NPM publish (Node)
NameDescriptionCategory
.releaserc.noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance
.releaserc.main-noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on main branchmain
.releaserc.dev-noNpmPublish.jsonSemantic release configuration with full usage, but without npm publish, to run on dev branchdev
Deno
NameDescriptionCategory
.releaserc.deno.jsonSemantic release configuration for deno configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, deno
.releaserc.main-deno.jsonSemantic release configuration for deno configured to run on main branchmain, deno
.releaserc.dev-deno.jsonSemantic release configuration for deno configured to run on dev branchdev, deno
.NET
NameDescriptionCategory
.releaserc.dotnet.jsonSemantic release configuration for dotnet configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, dotnet
.releaserc.main-dotnet.jsonSemantic release configuration for dotnet configured to run on main branchmain, dotnet
.releaserc.dev-dotnet.jsonSemantic release configuration for dotnet configured to run on dev branchdev, dotnet
Nuget
NameDescriptionCategory
.releaserc.nuget.jsonSemantic release configuration for nuget configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, nuget
.releaserc.main-nuget.jsonSemantic release configuration for nuget configured to run on main branchmain, nuget
.releaserc.dev-nuget.jsonSemantic release configuration for nuget configured to run on dev branchdev, nuget
Python
NameDescriptionCategory
.releaserc.python.jsonSemantic release configuration for python configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance supportmain, dev, alpha, beta, next, maintenance, python
.releaserc.main-python.jsonSemantic release configuration for python configured to run on main branchmain, python
.releaserc.dev-python.jsonSemantic release configuration for python configured to run on dev branchdev, python
Swagger
NameDescriptionCategory
.releaserc.swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on branches main and dev as well as n.x.x (maintenance) and with alpha, beta, next and maintenance support. An additional step to update the version in a swagger.yaml file (in root) is addedmain, dev, alpha, beta, next, maintenance, swagger
.releaserc.main-swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on main branch. An additional step to update the version in a swagger.yaml file (in root) is addedmain, swagger
.releaserc.dev-swagger.jsonSemantic release configuration with full usage, but without npm publish, configured to run on dev branch. An additional step to update the version in a swagger.yaml file (in root) is addeddev, swagger

Recommendation

Based on your git knowledge and application or package release cycle, different configurations might be best suited for you:

Package and advanced Git knowledge (rebasing, branching)

If you are an advanced git user with rebasing and branching knowledge and maintain an npm or dotnet package, the configurations .releaserc.full.json or .releaserc.nuget.json might be beneficial for you.
They provide support for normal version publishing, pre-releases and maintenance handling.
Branches:

  • main: normal version publishing
  • dev: beta releases
  • alpha: alpha releases
  • N.x.x: maintenance handling (e.g. 1.x.x handles all version 1 maintenance releases)
Package with basic Git knowledge

If you have basic git knowledge and maintain an npm or dotnet package, the configurations .releaserc.main-full.json or .releaserc.main-nuget.json might be beneficial for you.
They provide support for normal version publishing on branch main.

Application development

If you mainain an application you can check the configurations with main or dev in the name. They define the branch the release will be triggered.
Most suitable should be the dev handling. This means you develop and release on this branch and merge into main for manual deployment.

Usage

Add it to your .releaserc.json:

{
  "extends": "semantic-release-presets/presets/github/.releaserc.full.json"
}

Support

jonas.schubert
Jonas Schubert

Keywords

FAQs

Package last updated on 10 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc