Skip to content

Commit

Permalink
feat: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
romanrostislavovich committed Dec 30, 2020
1 parent 1522ab2 commit 5506cc3
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 22 deletions.
96 changes: 96 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"branch": "master",
"plugings": [
["semantic-release/commit-analyzer", {
"preset": "angular",
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}],
["semantic-release/release-notes-generator", {
"preset": "angular",
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
},
"writerOpts": {
"commitsSort": ["subject", "scope"]
}
}],
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# CHANGELOG"
}],
"@semantic-release/git",
"@semantic-release/github"
],
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github"
],
"analyzeCommits": {
"releaseRules": [
{
"type": "test",
"release": "patch"
},
{
"type": "docs",
"scope": ".*md",
"release": "patch"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "ci",
"release": "patch"
},
{
"type": "new",
"release": "minor"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "breaking",
"release": "major"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
}
},
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# CHANGELOG"
},
{
"path": "@semantic-release/git",
"assets": [
"CHANGELOG.md",
"package.json"
]
}
],
"publish": [
["@semantic-release/github", {
"assets": [
{"path": "release/ngx-translate-editor *.exe", "label": "WIN Desktop distribution"}
]
}]
]
}
23 changes: 2 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
os:
- linux
- osx
language: node_js
node_js:
- '12'
- '11'
- '10'
dist: xenial
sudo: required
services:
- xvfb
before_script:
- export DISPLAY=:99.0
before_install:
- sudo dpkg --add-architecture i386
- wget -q -O - https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
- sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
- sudo apt-get update
- sudo apt-get install --install-recommends winehq-stable -y --allow-unauthenticated
node_js: stable
install:
- npm set progress=false
- npm install
- npm install --force

jobs:
include:
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"e2e": "npm run build:prod && mocha --timeout 300000 --require ts-node/register e2e/**/*.spec.ts",
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"lint": "ng lint",
"lint:translate": "npx ngx-translate-lint -p ./src/app/**/*.{html,ts} -l ./src/assets/i18n/*.json"
"lint:translate": "npx ngx-translate-lint -p ./src/app/**/*.{html,ts} -l ./src/assets/i18n/*.json",
"semantic-release": "semantic-release",
"release": "npm run electron:windows"
},
"devDependencies": {
"@angular-builders/custom-webpack": "8.2.0",
Expand Down Expand Up @@ -87,15 +89,22 @@
"engines": {
"node": ">=10.9.0"
},
"files": [
"release/",
"README.md"
],
"dependencies": {
"@angular/animations": "^8.0.0 || ^9.0.0-0",
"@angular/cdk": "~8.2.3",
"@angular/forms": "^8.0.0 || ^9.0.0-0",
"@angular/material": "8.2.3",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"hammerjs": "^2.0.8",
"lodash": "4.17.20",
"lowdb": "1.0.0",
"ngx-translate-lint": "1.13.0",
"semantic-release": "17.3.1",
"shortid": "2.2.16"
}
}

0 comments on commit 5506cc3

Please sign in to comment.