Skip to content

Commit 4c732d5

Browse files
committed
feat: add Prettier and semantic-release configuration files
1 parent 47ed33f commit 4c732d5

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

prettierrc copy.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true
6+
}

releaserc copy.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"plugins": [
3+
[
4+
"@semantic-release/commit-analyzer",
5+
{
6+
"preset": "conventionalcommits",
7+
"releaseRules": [
8+
{ "scope": "force-patch", "release": "patch" },
9+
{ "scope": "no-release", "release": false }
10+
]
11+
}
12+
],
13+
["@semantic-release/release-notes-generator",
14+
{
15+
"preset": "conventionalcommits",
16+
"presetConfig":{
17+
"types": [
18+
{"type": "feat", "section": "Features"},
19+
{"type": "fix", "section": "Bug Fixes"},
20+
{"type": "chore", "hidden": true},
21+
{"type": "docs", "hidden": true},
22+
{"type": "style", "hidden": true},
23+
{"type": "refactor", "hidden": true},
24+
{"type": "perf", "hidden": true},
25+
{"type": "test", "hidden": true}
26+
]
27+
}
28+
}
29+
],
30+
["@semantic-release/changelog",
31+
{
32+
"changelogFile": "CHANGELOG.md"
33+
}
34+
],
35+
[
36+
"@semantic-release/exec",
37+
{
38+
"analyzeCommitsCmd": "echo \"${releases}\" >> $GITHUB_STEP_SUMMARY && echo \"version ${lastRelease.version} tag ${lastRelease.gitTag} type ${lastRelease.type} channel ${lastRelease.channel}\" >> $GITHUB_STEP_SUMMARY",
39+
"verifyReleaseCmd": "echo \"newVersion=true\" >> $GITHUB_OUTPUT",
40+
"publishCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT && echo \"tag=${nextRelease.gitTag}\" >> $GITHUB_OUTPUT && echo \"type=${nextRelease.type}\" >> $GITHUB_OUTPUT && echo \"channel=${nextRelease.channel}\" >> $GITHUB_OUTPUT"
41+
}
42+
]
43+
],
44+
"pkgRoot": "dist",
45+
"branches": [
46+
"main",
47+
{
48+
"name": "replace-me-feature-branch",
49+
"prerelease": "replace-me-prerelease",
50+
"channel": "replace-me-prerelease"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)