Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conventional-release-setup

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-release-setup - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0

files/.github/workflows/release-please.yml

33

package.json
{
"name": "conventional-release-setup",
"version": "1.2.2",
"version": "2.0.0",
"description": "Sets up package for committing/releasing with conventional commits.",
"author": "Mark <mark@remarkablemark.org>",
"bin": "index.js",
"bin": "lib/index.js",
"scripts": {
"build": "tsc",
"clean": "rm -rf lib",
"lint": "eslint --ignore-path .gitignore .",
"lint:fix": "npm run lint -- --fix",
"lint:tsc": "tsc --noEmit",
"_postinstall": "husky install",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable"
"prepublishOnly": "pinst --disable && npm run lint && npm run test:ci && npm run clean && npm run build",
"test": "jest -u",
"test:ci": "CI=true jest --ci --colors --coverage"
},

@@ -27,16 +32,22 @@ "repository": {

"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"eslint": "^8.17.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.0",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/jest": "^29.5.4",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.48.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"jest": "^29.6.4",
"lint-staged": "^14.0.1",
"pinst": "^3.0.0",
"prettier": "^2.6.2"
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"files": [
"/files",
"/index.js"
"/lib"
],
"license": "MIT"
}

@@ -7,2 +7,3 @@ # conventional-release-setup

[![build](https://github.com/remarkablemark/conventional-release-setup/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablemark/conventional-release-setup/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/remarkablemark/conventional-release-setup/graph/badge.svg?token=9U6TQRNAZ9)](https://codecov.io/gh/remarkablemark/conventional-release-setup)

@@ -15,29 +16,24 @@ Sets up an npm project for committing and releasing with [Conventional Commits](https://www.conventionalcommits.org/):

## Install
## Usage
Install the CLI globally:
Run the CLI:
```sh
# with npm
npm install --global conventional-release-setup
# with yarn
yarn global add conventional-release-setup
npx conventional-release-setup
```
## Usage
Or install the CLI globally and run:
If the CLI is installed globally, you can execute it in the command-line:
```sh
npm install --global conventional-release-setup
conventional-release-setup
```
Otherwise, you can install and execute the CLI like so:
If you want to release with [standard-version](https://www.npmjs.com/package/standard-version), then use v1:
```sh
npx conventional-release-setup
npx conventional-release-setup@1
```
## Explanation
## What It Does

@@ -55,8 +51,8 @@ The script:

- [husky](https://www.npmjs.com/package/husky) - sets up git hooks
- [standard-version](https://www.npmjs.com/package/standard-version) - generates changelog, bumps version, and creates git commit and tag
- copies the config:
- copies the configs:
- [.github/workflows/release-please.yml](https://github.com/google-github-actions/release-please-action) - generates changelog, bumps version, and creates git commit, tag, and release
- [.commitlintrc.json](https://github.com/remarkablemark/conventional-release-setup/blob/master/files/.commitlintrc.json)
- adds husky hook `commit-msg`
If the package is not `private`, the script also:
If the package is not `private`, then the script:

@@ -71,48 +67,6 @@ - updates `package.json` scripts:

If `-alpha` is appended to your `package.json` version:
Release is automated with [Release Please](https://github.com/google-github-actions/release-please-action).
```json
{
"version": "1.0.0-alpha"
}
```
You can run a release like so:
```sh
npm run release # npx standard-version --no-verify
```
Otherwise, you can [release as a target type imperatively](https://github.com/conventional-changelog/standard-version#release-as-a-target-type-imperatively-npm-version-like):
```sh
npx standard-version --release-as 1.0.0
```
Or if you want to use the current version as your [first release](https://github.com/conventional-changelog/standard-version#first-release):
```sh
npx standard-version --first-release
```
## Lint
Lint files:
```sh
npm run lint
```
Fix lint errors:
```sh
npm run lint:fix
```
## Release
Release and publish are automated by [Release Please](https://github.com/googleapis/release-please).
## License
[MIT](https://github.com/remarkablemark/conventional-release-setup/blob/master/LICENSE)
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