Skip to content

Commit

Permalink
chore(Publishing): Set up semantic-release and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed Jun 13, 2018
1 parent 7c758df commit 459b470
Show file tree
Hide file tree
Showing 6 changed files with 1,189 additions and 41 deletions.
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
v8.11.3
16 changes: 16 additions & 0 deletions .releaserc
@@ -0,0 +1,16 @@
{
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": ["CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
}
7 changes: 3 additions & 4 deletions .travis.yml
Expand Up @@ -3,11 +3,10 @@ cache: yarn
branches:
only:
- master
before_script:
- yarn global add firebase-tools
script:
- yarn lint
- yarn test
- yarn build:static
- yarn build:package
- yarn build:site
after_success:
- firebase deploy --token=${FIREBASE_TOKEN}
- npm run travis-deploy-once "npm run semantic-release"
4 changes: 0 additions & 4 deletions CHANGELOG.md
@@ -1,4 +0,0 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
13 changes: 10 additions & 3 deletions package.json
@@ -1,9 +1,9 @@
{
"name": "preshape",
"version": "1.0.0",
"version": "0.0.0-development",
"description": "A minimal design system and library of composable React components, primarily for my personal projects.",
"main": "lib/index.js",
"repository": "https://github.com/HHogg/preshape",
"repository": "git@github.com:HHogg/preshape.git",
"author": "Harry Hogg <harry@hogg.io>",
"license": "MIT",
"scripts": {
Expand All @@ -12,8 +12,10 @@
"lint:css": "stylelint site/**/*.css src/**/*.css",
"lint:js": "eslint site/**/*.js src/**/*.js",
"lint": "yarn lint:js && yarn lint:css",
"semantic-release": "semantic-release",
"start": "NODE_ENV=development webpack-dev-server",
"test": "BABEL_ENV=test jest ./src --config .jest.json"
"test": "BABEL_ENV=test jest ./src --config .jest.json",
"travis-deploy-once": "travis-deploy-once"
},
"peerDependencies": {
"react": "^16.3.1",
Expand All @@ -35,6 +37,9 @@
},
"devDependencies": {
"@brandwatch/axiom-documentation-loader": "^0.0.3",
"@semantic-release/changelog": "^2.0.2",
"@semantic-release/git": "^5.0.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.3",
"babel-loader": "^7.1.4",
Expand Down Expand Up @@ -68,11 +73,13 @@
"react-router": "^4.2.0",
"react-router-dom": "^4.2.2",
"react-test-renderer": "^16.3.2",
"semantic-release": "^15.5.2",
"static-site-generator-webpack-plugin": "^3.4.1",
"style-loader": "^0.20.3",
"stylelint": "^9.2.0",
"stylelint-config-preshape": "^1.0.0",
"stylelint-order": "^0.8.1",
"travis-deploy-once": "^5.0.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.0.0"
Expand Down

0 comments on commit 459b470

Please sign in to comment.