simple-semantic-config
Simple semantic-release shareable config to publish npm packages
Last updated 3 months ago by egis-moshe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install simple-semantic-config 
SYNC missed versions from official npm registry.

simple-semantic-config

semantic-release shareable config to publish npm packages with simple commit rules

Build Status

Why this project exists

This is a shareable config to publish npm packages with simple commit rules bases on angular preset of commit-analyzer plugin with following change: docs, chore and refactor commit types yield patch version. Thus pretty much any correctly formatted commit message yields new version.

Install

$ yarn add --dev "simple-semantic-config"

Usage

The shareable config can be configured in the semantic-release configuration file or package.json:

{
  "release": {
    "extends": "simple-semantic-config"
  }
}

It can work in monorepo semantic-release configuration, too:

{
  "release": {
    "extends": ["semantic-release-monorepo", "simple-semantic-config"]
  }
}

semantic-release-pre

Figures out new version according to semantic-release configuration, and writes it to build/.version file.

Example: BRANCH=master yarn simple-semantic-release-pre

OR

ALLOW_FAILING=false BRANCH=development yarn simple-semantic-release-pre

OR, to write to tmp/.version file:

OUT_DIR=tmp BRANCH=master yarn simple-semantic-release-pre

This requires having write Git access to repo specified in package.json, you can set it by exporting GH_TOKEN env var with: export GH_TOKEN=my-key

When it's run in CircleCI build context it uses CIRCLE_BRANCH so specifying BRANCH is not needed there: yarn simple-semantic-release-pre is enough.

semantic-release takes previous versions info from Github tags of origin remote, so when running it from local fork switch origin to upstream to get the correct new version:

git remote rm origin
git remote add origin git@github.com:upstream/my-project.git
BRANCH=master yarn simple-semantic-release-pre 
git remote rm origin
git remote add origin git@github.com:my-account/my-project.git

Current Tags

  • 6.0.7                                ...           artembeta (2 years ago)
  • 7.1.0                                ...           latest (14 days ago)

16 Versions

  • 7.1.0                                ...           14 days ago
  • 7.0.0                                ...           3 months ago
  • 6.1.2                                ...           3 months ago
  • 6.1.1                                ...           10 months ago
  • 6.1.0                                ...           10 months ago
  • 6.0.16                                ...           a year ago
  • 6.0.14                                ...           a year ago
  • 6.0.13                                ...           2 years ago
  • 6.0.12                                ...           2 years ago
  • 6.0.11                                ...           2 years ago
  • 6.0.10                                ...           2 years ago
  • 6.0.9                                ...           2 years ago
  • 6.0.8                                ...           2 years ago
  • 6.0.7                                ...           2 years ago
  • 6.0.6                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 29
Dependencies (1)
Dev Dependencies (1)
  • xo ^0.24.0
Dependents (1)

Copyright 2014 - 2016 © taobao.org |