build: use semantic-release to automate release (#2830)

* Link to previous deploys of releases instead of versioned docs

* Use semantic-release to automate release

* Use an environment for release job

* Run release only on push event
This commit is contained in:
ylemkimon
2021-03-22 15:30:57 +09:00
committed by GitHub
parent 7300952ae1
commit 3568cb9c99
76 changed files with 5072 additions and 14910 deletions

25
.releaserc Normal file
View File

@@ -0,0 +1,25 @@
{
"plugins": [
["@semantic-release/commit-analyzer", {
"releaseRules": [
{breaking: true, release: 'minor'},
{type: 'feat', release: 'patch'},
],
}],
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
"changelogTitle": "# Changelog\nAll notable changes to this project will be documented in this file. This CHANGELOG roughly follows the guidelines from [www.keepachangelog.com](https://keepachangelog.com/en/1.0.0/).",
}],
"@semantic-release/npm",
["@semantic-release/git", {
"assets": ["dist", "docs", "package.json", "CHANGELOG.md", "README.md", "contrib/*/README.md", "website/pages/index.html"],
"message": "chore(release): ${nextRelease.version} [ci skip]\n\n${nextRelease.notes}",
}],
["@semantic-release/github", {
"assets": [
{path: 'katex.tar.gz', label: 'tarball'},
{path: 'katex.zip', label: 'zip'},
],
}],
],
}