Skip to content

Commit 1ee3d44

Browse files
committed
chore: added semantic release integration
1 parent 38bcdbc commit 1ee3d44

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ cache:
1515
jobs:
1616
include:
1717
- stage: coverage
18-
node_js: "10"
18+
node_js: lts/*
1919
script:
2020
- npm run test -- --coverage && cat ./coverage/lcov.info | coveralls
21+
- stage: release
22+
node_js: lts/*
23+
deploy:
24+
provider: script
25+
skip_cleanup: true
26+
script:
27+
- npx semantic-release

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
> Remove selected attributes in each react element by selected conditions
44
55
[![npm version](https://img.shields.io/npm/v/babel-plugin-transform-react-remove-prop.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop) [![build status](https://travis-ci.org/maxsbelt/babel-plugin-transform-react-remove-prop.svg?branch=master)](https://travis-ci.org/maxsbelt/babel-plugin-transform-react-remove-prop) [![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest) [![Coverage Status](https://coveralls.io/repos/github/maxsbelt/babel-plugin-transform-react-remove-prop/badge.svg?branch=master)](https://coveralls.io/github/maxsbelt/babel-plugin-transform-react-remove-prop?branch=master)
6-
[![Dependencies](https://img.shields.io/david/maxsbelt/babel-plugin-transform-react-remove-prop.svg)](https://david-dm.org/maxsbelt/babel-plugin-transform-react-remove-prop) [![DevDependencies](https://img.shields.io/david/dev/maxsbelt/babel-plugin-transform-react-remove-prop.svg)](https://david-dm.org/maxsbelt/babel-plugin-transform-react-remove-prop?type=dev)
6+
7+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Dependencies](https://img.shields.io/david/maxsbelt/babel-plugin-transform-react-remove-prop.svg)](https://david-dm.org/maxsbelt/babel-plugin-transform-react-remove-prop) [![DevDependencies](https://img.shields.io/david/dev/maxsbelt/babel-plugin-transform-react-remove-prop.svg)](https://david-dm.org/maxsbelt/babel-plugin-transform-react-remove-prop?type=dev)
78

89
## Install
910

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"lint": "eslint .",
2323
"format": "eslint --fix .",
2424
"clean": "rimraf lib coverage",
25-
"prepack": "run-s clean format test build"
25+
"prepack": "run-s clean format test build",
26+
"semantic-release": "semantic-release"
2627
},
2728
"keywords": [
2829
"babel-plugin",
@@ -40,7 +41,8 @@
4041
"husky": "^3.0.4",
4142
"jest": "^24.9.0",
4243
"npm-run-all": "^4.1.5",
43-
"rimraf": "^3.0.0"
44+
"rimraf": "^3.0.0",
45+
"semantic-release": "^15.13.24"
4446
},
4547
"husky": {
4648
"hooks": {

0 commit comments

Comments
 (0)