Skip to content

Commit

Permalink
fix: Make release process as in Credential-Service (#237)
Browse files Browse the repository at this point in the history
* Bump all semantic-related packages

* Fix package-lock.json

* Debug

* Debug

* Revert it back

* Make the release process as in credential-service
  • Loading branch information
Andrew Nikitin authored Oct 24, 2023
1 parent c108a58 commit 17a5c99
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 81 deletions.
22 changes: 3 additions & 19 deletions .github/linters/.commitlint.rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,11 @@ module.exports = {
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
'scope-case': [2, 'always', 'lower-case'],
'scope-empty': [1, 'never'],
'subject-case': [
2,
'always',
['sentence-case'],
],
'subject-case': [2, 'always', ['sentence-case']],
'subject-empty': [1, 'never'],
'subject-full-stop': [1, 'never', '.'],
'header-max-length': [2, 'always', 100],
Expand All @@ -34,4 +18,4 @@ module.exports = {
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
},
};
};
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: "Obtain Github App token"
id: app-token
Expand Down
114 changes: 59 additions & 55 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
{
"branches": [
"main",
{
"name": "develop",
"channel": "beta",
"prerelease": true
}
],
"tagFormat": "${version}",
"ci": true,
"preset": "conventionalcommits",
"plugins": [
[ "@semantic-release/commit-analyzer",
{
"parserOpts": "./.github/linters/.commitlint.rules.js",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "scope": "security", "release": "patch" },
{ "type": "chore", "release": false },
{ "type": "ci", "release": false },
{ "type": "docs", "release": false },
{ "type": "refactor", "release": false },
{ "type": "revert", "release": false },
{ "type": "style", "release": false },
{ "type": "test", "release": false },
{ "scope": "no-release", "release": false },
{ "scope": "release", "release": "patch" }
],
"presetConfig": true
}
],
[ "@semantic-release/release-notes-generator",
{
"presetConfig": true
}
],
[ "@semantic-release/changelog",
{
"changelogTitle": "# Changelog"
}
],
"@semantic-release/npm",
[ "@semantic-release/git",
{
"assets": [ "package.json", "CHANGELOG.md" ],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
"branches": [
"main",
{
"name": "develop",
"channel": "beta",
"prerelease": true
}
],
"tagFormat": "${version}",
"ci": true,
"preset": "conventionalcommits",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"parserOpts": "./.github/linters/.commitlint.rules.js",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "scope": "security", "release": "patch" },
{ "type": "chore", "release": false },
{ "type": "ci", "release": false },
{ "type": "docs", "release": false },
{ "type": "refactor", "release": false },
{ "type": "revert", "release": false },
{ "type": "style", "release": false },
{ "type": "test", "release": false },
{ "scope": "no-release", "release": false },
{ "scope": "release", "release": "patch" }
],
"presetConfig": true
}
],
[
"@semantic-release/release-notes-generator",
{
"presetConfig": true
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# Changelog"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
"conventional-changelog-conventionalcommits": "^7.0.2",
"esbuild": "^0.19.5",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
Expand Down

0 comments on commit 17a5c99

Please sign in to comment.