Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add auto-release support #351

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ before_install:

script: ./scripts/.build.sh

after_success: ./scripts/.coverage.sh
after_success:
- ./scripts/.coverage.sh
- ./scripts/.release.sh

notifications:
webhooks:
Expand Down
26 changes: 22 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"description": "UI components for ManageIQ project",
"main": "index.js",
"scripts": {
"start": "webpack --watch",
"test": "karma start",
"prepublish": "webpack || true",
"build": "webpack --config webpack.vendor.config.js && webpack -p",
"build-dev": "webpack --config webpack.vendor.config.js && webpack",
"build-docs": "jsdoc -c jsdoc-conf.json",
"gettext:extract": "yarn run build && angular-gettext-cli --files './+(src|dist)/**/+(*.html|ui-components.js)' --dest './locale/ui-components.pot' --marker-names '__,N_' && yarn gettext:validate",
"gettext:validate": "node scripts/validate-gettext-catalog.js",
"install-vendor": "webpack --config webpack.vendor.config.js",
"build-docs": "jsdoc -c jsdoc-conf.json"
"prepublish": "webpack || true",
"release": "semantic-release",
"start": "webpack --watch",
"test": "karma start"
},
"repository": {
"type": "git",
Expand All @@ -25,7 +26,10 @@
"npm": ">= 3.8.1"
},
"devDependencies": {
"@khala/commit-analyzer-wildcard": "~1.0.4",
"@manageiq/font-fabulous": "^1.0.0",
"@semantic-release/git": "~7.0.4",
"@semantic-release/npm": "~5.0.4",
"@types/angular-mocks": "^1.5.7",
"@types/angular-ui-router": "^1.1.35",
"@types/jasmine": "^2.5.38",
Expand Down Expand Up @@ -82,6 +86,7 @@
"rx-angular": "^1.1.3",
"sass": "^0.5.0",
"sass-loader": "^4.0.2",
"semantic-release": "~15.9.17",
"style-loader": "^0.13.1",
"tslint": "4.0.2",
"tslint-loader": "3.2.0",
Expand All @@ -100,5 +105,18 @@
"es7-shim": "^6.0.0",
"eslint": "~3.9.1",
"sprintf-js": "^1.1.1"
},
"release": {
"analyzeCommits": "@khala/commit-analyzer-wildcard/analyzer",
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json"
],
"message": "Release of new version: ${nextRelease.version} <no> [skip ci]"
}
]
}
}
3 changes: 3 additions & 0 deletions scripts/.release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export GH_TOKEN=$GITHUB_AUTH
npm run release