Moved license and changelog export to releaseit hooks

This commit is contained in:
Nicolai Ort 2023-02-02 12:55:42 +01:00
parent 2b641faa29
commit 77c6303014
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 4 additions and 36 deletions

View File

@ -78,41 +78,6 @@ steps:
- dev
cache: true
registry: registry.odit.services
- name: run changelog export
depends_on: ["clone"]
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands:
- apk add git
- 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/backend.git
ssh_key:
from_secret: git_ssh
- name: run full license export
depends_on: ["clone"]
image: registry.odit.services/hub/library/node:19.5.0-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/backend.git
skip_verify: true
ssh_key:
from_secret: git_ssh
trigger:
branch:

View File

@ -98,6 +98,9 @@
},
"npm": {
"publish": false
},
"hooks": {
"after:bump": "auto-changelog --commit-limit false -p -u --hide-credit && npm run licenses:export && git add CHANGELOG.md && git add licenses.md"
}
},
"nodemonConfig": {
@ -106,4 +109,4 @@
"docs/*"
]
}
}
}