mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
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:
25
.releaserc
Normal file
25
.releaserc
Normal 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'},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user