Skip to content

Commit

Permalink
chore: setup auto release (#58)
Browse files Browse the repository at this point in the history
* chore(pkg): replace "standard-version" with "semantic-release"

* chore(deps-dev): update husky and lint-staged

* configure deploy

* chore: rm CHANGELOG

* ci: prevent build on tags
  • Loading branch information
Kocal authored Dec 1, 2018
1 parent d7a2e87 commit e739e48
Show file tree
Hide file tree
Showing 5 changed files with 1,995 additions and 542 deletions.
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@kocal/semantic-release-preset"
}
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ dist: trusty

language: node_js
node_js:
- "node"
- 8
- node

branches:
except:
- /^v\d+\.\d+\.\d+$/

cache:
yarn: true
Expand All @@ -19,3 +24,11 @@ script:
- yarn lint
- yarn build
- yarn test -i && codecov

jobs:
include:
- stage: Release
if: branch = master AND type = push
node_js: node
script: yarn semantic-release

88 changes: 0 additions & 88 deletions CHANGELOG.md

This file was deleted.

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kocal/web-extension-library",
"version": "1.0.0",
"version": "0.0.0-development",
"description": "A set of functions used for easily write a web extension",
"repository": "https://github.com/Kocal-Web-Extensions/library.git",
"author": "Hugo Alliaume <[email protected]>",
Expand All @@ -12,12 +12,12 @@
"typings": "dist/types/index.d.ts",
"scripts": {
"prepublishOnly": "yarn lint && yarn test && yarn build",
"release": "standard-version",
"build": "rimraf dist && tsc --build tsconfig.build.json",
"lint": "tslint --project tsconfig.json",
"test": "jest",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
"docs:build": "vuepress build docs",
"semantic-release": "semantic-release"
},
"husky": {
"hooks": {
Expand All @@ -31,18 +31,22 @@
"git add"
]
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@kocal/semantic-release-preset": "^1.1.0",
"@types/jest": "^23.3.2",
"@types/node": "^10.9.4",
"@types/qs": "^6.5.1",
"axios-mock-adapter": "^1.15.0",
"husky": "^1.0.0-rc.14",
"husky": "^1.2.0",
"jest": "^23.6.0",
"jest-webextension-mock": "^3.4.0",
"lint-staged": "^8.0.0-beta.1",
"lint-staged": "^8.1.0",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"standard-version": "^4.4.0",
"semantic-release": "^15.12.3",
"ts-jest": "^23.1.4",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.0",
Expand Down
Loading

0 comments on commit e739e48

Please sign in to comment.