Moved Release management to releaseit
This commit is contained in:
parent
84e3778b89
commit
68bd293acb
43
.drone.yml
43
.drone.yml
|
@ -70,40 +70,6 @@ steps:
|
|||
- dev
|
||||
cache: true
|
||||
registry: registry.odit.services
|
||||
- name: run changelog export
|
||||
depends_on: ["clone"]
|
||||
image: registry.odit.services/hub/library/node:19.0.1-alpine3.16
|
||||
commands:
|
||||
- npx auto-changelog --commit-limit false -p -u --hide-credit
|
||||
- name: push new changelog to repo
|
||||
depends_on: ["run changelog export"]
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
branch: dev
|
||||
commit: true
|
||||
commit_message: 🧾New changelog file version [CI SKIP] [skip ci]
|
||||
author_email: bot@odit.services
|
||||
remote: git@git.odit.services:lfk/mailer.git
|
||||
ssh_key:
|
||||
from_secret: git_ssh
|
||||
- name: run full license export
|
||||
depends_on: ["clone"]
|
||||
image: registry.odit.services/hub/library/node:19.0.1-alpine3.16
|
||||
commands:
|
||||
- yarn
|
||||
- yarn licenses:export
|
||||
- name: push new licenses file to repo
|
||||
depends_on: ["run full license export"]
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
branch: dev
|
||||
commit: true
|
||||
commit_message: 📖New license file version [CI SKIP] [skip ci]
|
||||
author_email: bot@odit.services
|
||||
remote: git@git.odit.services:lfk/mailer.git
|
||||
skip_verify: true
|
||||
ssh_key:
|
||||
from_secret: git_ssh
|
||||
trigger:
|
||||
branch:
|
||||
- dev
|
||||
|
@ -142,15 +108,6 @@ steps:
|
|||
- latest
|
||||
cache: true
|
||||
registry: registry.odit.services
|
||||
- name: push merge to repo
|
||||
depends_on: ["clone"]
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
branch: dev
|
||||
commit: false
|
||||
remote: git@git.odit.services:lfk/mailer.git
|
||||
ssh_key:
|
||||
from_secret: git_ssh
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -138,3 +138,4 @@ build
|
|||
lib
|
||||
/oss-attribution
|
||||
*.tmp
|
||||
pnpm-lock.yaml
|
||||
|
|
11
package.json
11
package.json
|
@ -7,6 +7,7 @@
|
|||
"dev": "nodemon src/app.ts",
|
||||
"build": "rimraf ./dist && tsc && cp-cli ./src/templates ./dist/templates && cp-cli ./src/locales ./dist/locales",
|
||||
"licenses:export": "license-exporter --markdown",
|
||||
"changelog:export": "auto-changelog --commit-limit false -p -u --hide-credit",
|
||||
"release": "release-it --only-version",
|
||||
"translations:sort": "node ./scripts/sort_translations.js",
|
||||
"test": "jest",
|
||||
|
@ -65,6 +66,7 @@
|
|||
"@types/jest": "26.0.20",
|
||||
"@types/node": "14.14.22",
|
||||
"@types/nodemailer": "6.4.0",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"axios": "0.21.1",
|
||||
"cp-cli": "2.0.0",
|
||||
"jest": "26.6.3",
|
||||
|
@ -82,11 +84,16 @@
|
|||
"requireCleanWorkingDir": false,
|
||||
"commitMessage": "🚀Bumped version to v${version}",
|
||||
"requireBranch": "dev",
|
||||
"push": false,
|
||||
"tag": false
|
||||
"push": true,
|
||||
"tag": true,
|
||||
"tagName": "v${version}",
|
||||
"tagAnnotation": "v${version}"
|
||||
},
|
||||
"npm": {
|
||||
"publish": false
|
||||
},
|
||||
"hooks": {
|
||||
"after:bump": "npm run changelog:export && npm run licenses:export && git add CHANGELOG.md && git add licenses.md"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user