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
|
- dev
|
||||||
cache: true
|
cache: true
|
||||||
registry: registry.odit.services
|
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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- dev
|
- dev
|
||||||
@ -142,15 +108,6 @@ steps:
|
|||||||
- latest
|
- latest
|
||||||
cache: true
|
cache: true
|
||||||
registry: registry.odit.services
|
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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -138,3 +138,4 @@ build
|
|||||||
lib
|
lib
|
||||||
/oss-attribution
|
/oss-attribution
|
||||||
*.tmp
|
*.tmp
|
||||||
|
pnpm-lock.yaml
|
||||||
|
11
package.json
11
package.json
@ -7,6 +7,7 @@
|
|||||||
"dev": "nodemon src/app.ts",
|
"dev": "nodemon src/app.ts",
|
||||||
"build": "rimraf ./dist && tsc && cp-cli ./src/templates ./dist/templates && cp-cli ./src/locales ./dist/locales",
|
"build": "rimraf ./dist && tsc && cp-cli ./src/templates ./dist/templates && cp-cli ./src/locales ./dist/locales",
|
||||||
"licenses:export": "license-exporter --markdown",
|
"licenses:export": "license-exporter --markdown",
|
||||||
|
"changelog:export": "auto-changelog --commit-limit false -p -u --hide-credit",
|
||||||
"release": "release-it --only-version",
|
"release": "release-it --only-version",
|
||||||
"translations:sort": "node ./scripts/sort_translations.js",
|
"translations:sort": "node ./scripts/sort_translations.js",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
@ -65,6 +66,7 @@
|
|||||||
"@types/jest": "26.0.20",
|
"@types/jest": "26.0.20",
|
||||||
"@types/node": "14.14.22",
|
"@types/node": "14.14.22",
|
||||||
"@types/nodemailer": "6.4.0",
|
"@types/nodemailer": "6.4.0",
|
||||||
|
"auto-changelog": "^2.4.0",
|
||||||
"axios": "0.21.1",
|
"axios": "0.21.1",
|
||||||
"cp-cli": "2.0.0",
|
"cp-cli": "2.0.0",
|
||||||
"jest": "26.6.3",
|
"jest": "26.6.3",
|
||||||
@ -82,11 +84,16 @@
|
|||||||
"requireCleanWorkingDir": false,
|
"requireCleanWorkingDir": false,
|
||||||
"commitMessage": "🚀Bumped version to v${version}",
|
"commitMessage": "🚀Bumped version to v${version}",
|
||||||
"requireBranch": "dev",
|
"requireBranch": "dev",
|
||||||
"push": false,
|
"push": true,
|
||||||
"tag": false
|
"tag": true,
|
||||||
|
"tagName": "v${version}",
|
||||||
|
"tagAnnotation": "v${version}"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"publish": false
|
"publish": false
|
||||||
|
},
|
||||||
|
"hooks": {
|
||||||
|
"after:bump": "npm run changelog:export && npm run licenses:export && git add CHANGELOG.md && git add licenses.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user