mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
61 lines
1.5 KiB
JavaScript
61 lines
1.5 KiB
JavaScript
require('dotenv').config();
|
|
|
|
module.exports = {
|
|
interactive: true,
|
|
hooks: {
|
|
"before:init": ["node esbuild.config.mjs production"],
|
|
"after:bump": [
|
|
"node esbuild.config.mjs production",
|
|
"node ./scripts/zip.mjs",
|
|
"git add .",
|
|
],
|
|
"after:release":
|
|
"echo Successfully released Task Genius v${version} to ${repo.repository}.",
|
|
},
|
|
git: {
|
|
requireBranch: "master",
|
|
requireCleanWorkingDir: true,
|
|
pushArgs: "--follow-tags -o ci.skip",
|
|
commitMessage: "chore(release): bump version to ${version}",
|
|
tagName: "${version}",
|
|
tagAnnotation: "Release ${version}",
|
|
addUntrackedFiles: true,
|
|
},
|
|
plugins: {
|
|
"@release-it/conventional-changelog": {
|
|
preset: {
|
|
name: "conventionalcommits",
|
|
types: [
|
|
{type: "feat", section: "Features"},
|
|
{type: "fix", section: "Bug Fixes"},
|
|
{type: "perf", section: "Performance"},
|
|
{type: "refactor", section: "Refactors"},
|
|
{type: "chore", section: "Chores"},
|
|
{type: "docs", section: "Documentation"},
|
|
{type: "style", section: "Styles"},
|
|
{type: "test", section: "Tests"}
|
|
]
|
|
},
|
|
infile: "CHANGELOG.md",
|
|
header: "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\n"
|
|
},
|
|
"./scripts/ob-bumper.mjs": {
|
|
indent: 2,
|
|
copyTo: "./dist",
|
|
},
|
|
},
|
|
npm: {
|
|
publish: false,
|
|
},
|
|
github: {
|
|
release: true,
|
|
assets: [
|
|
"dist/main.js",
|
|
"dist/manifest.json",
|
|
"dist/styles.css",
|
|
"dist/task-genius-${version}.zip",
|
|
],
|
|
proxy: process.env.HTTPS_PROXY,
|
|
releaseName: "${version}",
|
|
},
|
|
};
|