Skip to content

Commit

Permalink
fix: publish to npm using semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan DiMascio committed Jul 26, 2020
1 parent 5752815 commit 7c20e87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ deploy:
provider: script
skip_cleanup: true
script:
"npx semantic-release"
"npm run release"
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "to-class",
"version": "0.0.0-development",
"description": "",
"version": "0.0.0-semantically-released",
"description": "Build a string of conditional, deduplicated classNames.",
"main": "dist/index.js",
"files": [
"dist"
Expand All @@ -13,7 +13,8 @@
"test": "ava --verbose",
"cover": "nyc npm run test",
"cover:report": "nyc report --reporter=text-lcov | coveralls",
"build": "npx rimraf ./dist && rollup -c"
"build": "npx rimraf ./dist && rollup -c",
"release": "npx semantic-release pre && npm publish && semantic-release post"
},
"browserslist": [
"> 1%",
Expand Down

0 comments on commit 7c20e87

Please sign in to comment.