Skip to content

Commit

Permalink
fix(release-it): πŸ› update config for the plugin changes
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Apr 5, 2023
1 parent 507f975 commit 9b86ba2
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .release-it.cjs
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
/* eslint-disable no-template-curly-in-string */
const {
conventionalChangelogWriterOptsTransform,
commitTemplate,
mainTemplate,
commitPartial,
transform,
commitGroupsSort,
} = require("./release-it/conventionalChangelogWriterOptsTransform.cjs");

module.exports = {
hooks: {
"before:init": ["pnpm lint", "pnpm test"],
"before:init": [
"npx turbo run lint:eslint lint:types lint:css lint:md lint:knip lint:package-json lint:spelling lint:prettier test",
],
},
git: {
requireBranch: "main",
requireCommits: true,
requireCleanWorkingDir: true,
commitMessage: "πŸš€ Release v${version}",
commitArgs: ["--no-verify", "-S"],
tagArgs: ["-s"],
},
github: {
release: true,
releaseName: "Release v${version}",
release: true,
comments: {
submit: true,
},
},
npm: {
publish: false,
},
plugins: {
"@release-it/conventional-changelog": {
ignoreRecommendedBump: true,
preset: { name: "conventionalcommits" },
infile: "CHANGELOG.md",
gitRawCommitsOpts: {
format:
"%B%n-hash-%n%H%n-shortHash-%n%h%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae%n-gpgStatus-%n%G?%n-gpgSigner-%n%GS",
},
writerOpts: {
commitPartial: commitTemplate,
transform: conventionalChangelogWriterOptsTransform,
},
preset: {
name: "conventionalcommits",
mainTemplate,
commitPartial,
transform,
commitGroupsSort,
},
},
},
Expand Down

0 comments on commit 9b86ba2

Please sign in to comment.