Skip to content

Commit 9cfb0cd

Browse files
authored
Merge pull request #4 from JosephDSchwartz/automatic-semantic-versioning
Build: adding automated semantic versioning
2 parents efb9364 + 2e8b17f commit 9cfb0cd

File tree

6 files changed

+7880
-1255
lines changed

6 files changed

+7880
-1255
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@ language: node_js
22
node_js:
33
- lts/*
44
- node
5+
6+
stages:
7+
- test
8+
- name: release
9+
if: branch = master && type != pull_request
10+
11+
jobs:
12+
include:
13+
- stage: release
14+
node_js: node
15+
script: skip
16+
deploy:
17+
provider: script
18+
skip_cleanup: true
19+
script: npx semantic-release

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# react-html-element
22

33
[![Build Status](https://travis-ci.org/WTW-IM/react-html-element.svg?branch=master)](https://travis-ci.org/github/WTW-IM/react-html-element)
4+
[![npm version](https://badge.fury.io/js/react-html-element.svg)](https://badge.fury.io/js/react-html-element)
45

56
## The Problem
67

@@ -101,3 +102,17 @@ class IncrementerComponent extends ReactHTMLElement {
101102

102103
customElements.define('incrementer', ReactTestComponent);
103104
```
105+
106+
107+
# Contributing
108+
109+
This package uses `semantic-release`. Changes will be compiled into a changelog and the package versioned, tagged and published automatically.
110+
Please ensure your commit messages adhere to the following structure:
111+
112+
```
113+
<type>: <subject>
114+
<BLANK LINE>
115+
<body>
116+
```
117+
118+
Only the header is mandatory. The supported types are based off of the [ESLint Convention](https://github.com/conventional-changelog/conventional-changelog/tree/35e279d40603b0969c6d622514f5c0984c5bf309/packages/conventional-changelog-eslint).

commitlint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
['Fix', 'Update', 'Breaking', 'Docs', 'Build', 'New', 'Upgrade']
8+
],
9+
'type-case': [2, 'always', 'pascal-case']
10+
}
11+
};

0 commit comments

Comments
 (0)