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

@woopidi/semantic-release

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@woopidi/semantic-release

An easy way to setup sematic versioning and version releasing

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Semantic Release

This makes life easier to setup semantic release on your package.

1. Install

npm i -D @woopidi/semantic-release

2. Modify package.json file

Add a semantic release cli command to trigger the release

"scripts": : {
	"release": "semantic-release",
	"commit": "commitizen"
}

Change your package version to something like this:

"version": "0.0.0-semantic-versioning"

Add the husky hooks to your package file:

"husky": {
    "hooks": {
      "commit-msg": "commitlint -E  HUSKY_GIT_PARAMS"
    }
}

3. Add the .releaserc.json in your root directory

{
	"branches": [
		"master"
	],
	"plugins": [
		"@semantic-release/commit-analyzer",
		"@semantic-release/release-notes-generator",
		[
			"@semantic-release/gitlab",
			{
				"gitlabUrl": "<GITLAB_SERVER_URL>"
			}
		]
	]
}

4. Add the commitlint.config.js in your root directory

module.exports = {
	extends: [
		"@commitlint/config-conventional"
	],
	rules: {
		"subject-case": [
			2,
			"never",
			[
				"start-case",
				"pascal-case"
			]
		]
	}
}

5. Tag your initial version manually

npm tag v1.0.0 <LOG_HASH_GOES_HERE>
npm push origin v1.0.0

6. Finally you can run the release

npm run release

Keywords

FAQs

Package last updated on 10 Oct 2020

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