1.0.17 • Published 5 months ago

@prescott/semantic-release-config v1.0.17

Weekly downloads
30
License
MIT
Repository
github
Last release
5 months ago

@prescott/semantic-release-config

A common semantic-release configuration for personal TypeScript projects.

Setup

$ npm install @prescott/semantic-release-config --save-dev

Add the following to .releaserc.json

{
  "extends": "@prescott/semantic-release-config"
}

Add the following to CI Script:

$ npx semantic-release

Configurations

Default

This is commonly used preset.

{
  "extends": "@prescott/semantic-release-config"
}

Monorepo/Embedded Packages

This is a special configuration for monorepo packages, or embedded packages where package is co-located inside service repository.

For example, Media SDK is located in Media Service repository, and non-sdk related commits are not using semantic-commits.

In this case, Follow below setup steps.

First, Add semantic-release-commit-filter package to devDependencies:

$ npm i semantic-release-commit-filter --save-dev --save-exact

Then, Use following semantic-release configuration:

{
  "extends": ["semantic-release-commit-filter", "@prescott/semantic-release-config"],
  "tagFormat": "[PACKAGE_NAME]-v${version}"
}

That's all! Run semantic-release inside package directory:

For example:

$ cd media-sdk
$ npx semantic-release

You can also check your configuration before automated release:

$ npx semantic-release --dry-run
1.0.17

5 months ago

1.0.16

5 months ago

1.0.2

9 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.15

5 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

7 months ago

1.0.1

4 years ago

1.0.0

4 years ago