This is a CLI that abstracts away all configuration for my open source projects.
yarn add -D h-scripts
Automate version management and package publishing with Travis.
travis-after-success
should be used in the after_success
method.
dist: trusty
language: node_js
node_js: '10'
install: yarn
script:
- yarn test
- yarn build
after_success: h-scripts travis-after-success
In order for this method to succeed, make sure to:
- Have
GH_TOKEN
andNPM_TOKEN
defined in Travis CI - Have
0.0.0-semantically-released
set as the package version inpackage.json
By default semantic-release
uses Angular Commit Message Conventions.
I typically like using th ESLint convention instead.
In order to do so, you will need to alter the preset. One way to do this is via a .releaserc
file at the root of your project.
Example: Changing the preset as well as the directory to publish
{
"pkgRoot": "build",
"preset": "eslint"
}
This is inspired from kcd-scripts
.