feat: publish changelog to gitea release
This commit is contained in:
parent
0b90fa25d6
commit
c539a8b10b
3 changed files with 10 additions and 3 deletions
|
@ -14,11 +14,13 @@ pipeline:
|
|||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
||||
- apk add --no-cache git
|
||||
- apk add --no-cache git npm
|
||||
- helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
||||
- helm dependency build
|
||||
- rm -rf tmp/
|
||||
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
||||
- npm ci
|
||||
- npm run changelog "${CI_COMMIT_TAG##v}" tmp/changelog.md
|
||||
secrets:
|
||||
- token
|
||||
|
||||
|
@ -32,6 +34,7 @@ pipeline:
|
|||
files: tmp/*
|
||||
title: ${CI_COMMIT_TAG##v}
|
||||
file_exists: fail
|
||||
note: tmp/changelog.md
|
||||
|
||||
publish-chart:
|
||||
image: alpine:3.17.0
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"npm": ">=8.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"changelog": "node tools/changelog.mjs",
|
||||
"readme:lint": "markdownlint *.md -f",
|
||||
"readme:parameters": "readme-generator -v values.yaml -r README.md"
|
||||
},
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
import conventionalChangelogCore from 'conventional-changelog-core';
|
||||
import conventionalChangelogPreset from 'conventional-changelog-conventionalcommits';
|
||||
import fs from "node:fs"
|
||||
|
||||
const config = conventionalChangelogPreset();
|
||||
|
||||
const file = process.argv[3] ? fs.createWriteStream(process.argv[3]): process.stdout;
|
||||
|
||||
conventionalChangelogCore(
|
||||
{
|
||||
config,
|
||||
releaseCount: 2,
|
||||
},
|
||||
{ version: '0.1.1', linkCompare: false },
|
||||
{ version: process.argv[2], linkCompare: false },
|
||||
undefined,
|
||||
undefined,
|
||||
{ headerPartial: '' }
|
||||
).pipe(process.stdout);
|
||||
).pipe(file);
|
||||
|
|
Loading…
Reference in a new issue