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 46e50df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .release-it.json
@@ -1,5 +1,19 @@
{
"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 46e50df

Please sign in to comment.