Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
ci(Travis): run validate script and semantic-release when master (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdenner authored Feb 29, 2020
1 parent ef2b174 commit 33b1101
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"*.{js,ts,json,md}": [
"prettier --write",
"git add"
"prettier --write"
]
}
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
language: node_js

cache:
directories:
- ~/.npm
notifications:
email: false
node_js:
- "node"
- '10'
- '11'
- '12'
script: npm run validate
after_success:
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && npx semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-lax",
"version": "3.1.0",
"version": "0.0.0-development",
"description": "React hook to use with lax.js.",
"main": "./dist/use-lax.cjs.js",
"module": "./dist/use-lax.esm.js",
Expand All @@ -17,15 +17,12 @@
"author": "Arthur Denner <[email protected]>",
"scripts": {
"add-contributor": "all-contributors add",
"prebuild": "rimraf dist types",
"build": "rollup -c && tsc",
"preversion": "npm test",
"prepare": "npm run build",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
"validate": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arthurdenner/use-lax.git"
"url": "https://github.com/arthurdenner/use-lax.git"
},
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit 33b1101

Please sign in to comment.