Skip to content

Commit

Permalink
CI: auto configuration in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Jun 5, 2024
1 parent 3013c27 commit a6077ba
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
private-key: ${{ secrets.ADBLOCKERBOT_PRIVATE_KEY }}

- name: Create release
run: yarn release
run: yarn auto shipit -vv
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
80 changes: 80 additions & 0 deletions auto.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
export default function rc() {
return {
name: 'Adblocker Bot',
email: 'adblocker-bot@users.noreply.github.com',
plugins: ['protected-branch', 'npm'],
labels: [
{
name: 'PR: Breaking Change :boom:',
description: 'Increment major version when merged',
changelogTitle: ':boom: Breaking Change',
releaseType: 'major',
overwrite: true,
color: '#e2372b',
},
{
name: 'PR: New Feature :rocket:',
description: 'Increment minor version when merged',
changelogTitle: ':rocket: New Feature',
releaseType: 'minor',
overwrite: true,
color: '#2e449b',
},
{
name: 'PR: Performance :running_woman:',
description: 'Increment minor version when merged',
changelogTitle: ':running_woman: Performance',
releaseType: 'minor',
overwrite: true,
color: '#ead99f',
},
{
name: 'PR: Bug Fix :bug:',
description: 'Increment patch version when merged',
changelogTitle: ':bug: Bug Fix',
releaseType: 'patch',
overwrite: true,
color: '#56dd97',
},
{
name: 'PR: Polish :nail_care:',
description: 'Increment patch version when merged',
changelogTitle: ':nail_care: Polish',
releaseType: 'patch',
overwrite: true,
color: '#a9bbe8',
},
{
name: 'PR: Internal :house:',
description: 'Changes only affect internals',
changelogTitle: ':house: Internal',
releaseType: 'none',
overwrite: true,
color: '#5b1482',
},
{
name: 'PR: Docs :memo:',
description: 'Changes only affect documentation',
changelogTitle: ':memo: Documentation',
releaseType: 'none',
overwrite: true,
color: '#d2f28a',
},
{
name: 'skip-release',
description: 'Preserve the current version when merged',
releaseType: 'skip',
overwrite: true,
color: '#e069cf',
},
{
name: 'PR: Dependencies :nut_and_bolt:',
description: 'Changes only update dependencies',
changelogTitle: ':nut_and_bolt: Dependencies',
releaseType: 'none',
overwrite: true,
color: '#5dbdcc',
},
],
};
}
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"build": "tsc --build ./tsconfig.project.json && lerna run build",
"test": "lerna run --concurrency 4 test",
"clean": "lerna run --parallel clean && lerna clean --yes",
"release": "auto shipit -v",
"format-check": "prettier './packages/**/*.ts' --check",
"format-fix": "prettier './packages/**/*.ts' --write"
},
Expand All @@ -86,13 +85,5 @@
"typescript": "^5.4.5",
"typescript-eslint": "8.0.0-alpha.24"
},
"auto": {
"extends": "@remusao/auto-config",
"name": "Adblocker Bot",
"email": "adblocker-bot@users.noreply.github.com",
"plugins": [
"protected-branch"
]
},
"packageManager": "yarn@4.2.2"
}
1 change: 1 addition & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"extends": "./tsconfig.json",
"include": [
"auto.config.js",
"eslint.config.js",
]
}

0 comments on commit a6077ba

Please sign in to comment.