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