Skip to content

Commit

Permalink
ci: Add AppVeyor with semantic-release bot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Mohamad Aizuddin b. Nik Azmi committed Feb 25, 2021
1 parent b902fcb commit 53526c7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"branches": [
{"name": "master"},
{"name": "rc", "channel": "rc", "prerelease": "rc"},
{"name": "beta", "channel": "beta", "prerelease": "beta"},
{"name": "alpha", "channel": "alpha", "prerelease": "alpha"}
],
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"breaking": "true", "release": "major"},
{"type": "docs", "release": "patch"},
{"type": "refactor", "release": "patch"},
{"type": "style", "release": "patch"},
{"type": "chore", "release": "patch"},
{"type": "perf", "release": "patch"},
{"type": "ci", "release": "patch"}
]
}],
['@semantic-release/changelog', {
changelogFile: 'CHANGELOG.md',
changelogTitle: '# Changelog',
}],
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "VERSION.txt"]
}],
["@semantic-release/release-notes-generator", {
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{"type": "feat", "section": "Features", "hidden": false},
{"type": "fix", "section": "Fixes", "hidden": false},
{"type": "docs", "section": "Documentations", "hidden": false},
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
{"type": "style", "section": "Styles", "hidden": false},
{"type": "chore", "section": "Maintenance", "hidden": false},
{"type": "perf", "section": "Performance Improvements", "hidden": false},
{"type": "ci", "section": "Continuous Integrations", "hidden": false}
]
}
}],
"@semantic-release/github",
["@semantic-release/exec", {
"generateNotesCmd": "echo ${nextRelease.version} > VERSION.txt"
}]
]
}
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
os: Ubuntu
platform:
- x64
on_success:
- wget https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh
- sudo bash install.sh
- nvm install lts/*
- npm i -D semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/npm @semantic-release/github @semantic-release/git @semantic-release/exec @commitlint/cli @commitlint/config-conventional
- npx semantic-release
test: off

0 comments on commit 53526c7

Please sign in to comment.