Skip to content

Commit

Permalink
Add configuration for release-it
Browse files Browse the repository at this point in the history
This configuration supplies publishing to npm along with making a
release on GitHub with additional assets to be uploaded (in particular
minified versions for both the module and nonmodule variants).
  • Loading branch information
carhartl committed Sep 12, 2019
1 parent e1fe249 commit 3e28c79
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .release-it.json
@@ -1,5 +1,22 @@
{
"git": {
"commitMessage": "Craft v${version} release",
"requireCleanWorkingDir": false,
"tagAnnotation": "Release v${version}",
"tagName": "v${version}"
},
"github": {
"release": true
"assets": [
"dist/*.mjs",
"dist/*.js"
],
"draft": true,
"release": true,
"releaseName": "v${version}"
},
"hooks": {
"after:bump": "npm run dist",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}.",
"before:init": "npm test"
}
}
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -20,6 +20,7 @@
"scripts": {
"test": "grunt test",
"format": "standard --fix && prettier -l --write --single-quote --no-semi '**/*.{html,json,md}' && eslint '**/*.{html,md}' --fix",
"dist": "rm -rf dist/* && rollup -c",
"release": "release-it"
},
"repository": {
Expand Down

0 comments on commit 3e28c79

Please sign in to comment.