@davidspekorg/semantic-release-helm

中文文档
1.1.1发布于 2024/11/25MITTypeScriptES Module近 30 天下载 8311

Helm plugin for semantic-release

原始使用文档
文档目录4 节
  1. Install
  2. Configuration
  3. About versionUpdatePolicy & appVersionUpdatePolicy
  4. Example

semantic-release-helm

semantic-release plugin to publish a helm chart to a helm repository and an OCI registry.

It updates Helm chart version and appVersion in Chart.yaml.

It supports the following protocols:

Install

npm install -D @davidspekorg/semantic-release-helm

Configuration

OptionsDescriptionsRequiredtypeDefault
chartRepositoryURI for chart repositoryyes*stringnone
ociRegistryURI for OCI registryyes*stringnone
chartDirectoryChart directory where Chart.yml is locatednostring.
versionUpdatePolicySet update policy for version field of Chart.yamlno"fixed" | "sync" | "desync""sync"
appVersionUpdatePolicySet update policy for appVersion field of Chart.yamlno"fixed" | "sync" | "desync""sync"

* At least one of ociRegistry or chartRepository is required.

Pass credentials through environment variable to login helm repository.

export HELM_REPOSITORY_USERNAME=<USERNAME>
export HELM_REPOSITORY_PASSWORD=<PASSWORD>
export HELM_REGISTRY_USERNAME=<USERNAME>
export HELM_REGISTRY_PASSWORD=<PASSWORD>

HELM_REPOSITORY_USERNAME and HELM_REPOSITORY_PASSWORD are used for chart repository login.

HELM_REGISTRY_USERNAME and HELM_REGISTRY_PASSWORD are used for OCI registry login.

If you are using oci registry and no credentials are provided, it will use the HELM_REPOSITORY_USERNAME and HELM_REPOSITORY_PASSWORD for login.

About versionUpdatePolicy & appVersionUpdatePolicy

Update policy

  • fixed: Use Fixed version. The version will not be updated
  • sync: Use nextRelease.version. New version will be set to nextRelease.version
  • desync: Version will be increased according to nextRelease.type (one of major, premajor, minor, preminor, patch, prepatch, prerelease)

Example

{
  "plugins": [
    [
      "@davidspekorg/semantic-release-helm",
      {
        "chartRepository": "https://mychart.company.org/chartrepo/myproject",
        "ociRegistry": "mychart.company.org/myproject",
        "chartDirectory": "./chart",
        "versionUpdatePolicy": "sync",
        "appVersionUpdatePolicy": "fixed"
      }
    ]
  ]
}
  • Your chart repository is https://mychart.company.org/chartrepo/myproject and OCI registry is mychart.company.org/myproject.
  • Chart.yaml is in chart sub-directory
  • version will follow next release version and appVersion will not modified

Old version

# semantic-release version: 1.2.3
version: 1.2.3
appVersion: 2.3.1

New version - Case #1 patch

# semantic-release version: 1.2.4
version: 1.2.4
appVersion: 2.3.1

New version - Case #2 minor

# semantic-release version: 1.3.0
version: 1.3.0
appVersion: 2.3.1

New version - Case #3 major

# semantic-release version: 2.0.0
version: 2.0.0
appVersion: 2.3.1

版本与发布记录

@davidspekorg/semantic-release-helm 共发布 3 个版本,首次发布于 2024/11/25;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.1.1latest2024/11/252 年前
1.1.02024/11/252 年前
1.0.02024/11/252 年前

关于 @davidspekorg/semantic-release-helm 的常见问题

@davidspekorg/semantic-release-helm 是什么?

Helm plugin for semantic-release

如何安装 @davidspekorg/semantic-release-helm?

在项目目录运行 npm install @davidspekorg/semantic-release-helm,或使用 pnpm add / yarn add / bun add。

@davidspekorg/semantic-release-helm 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@davidspekorg/semantic-release-helm 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@davidspekorg/semantic-release-helm 可以商用吗?

@davidspekorg/semantic-release-helm 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@davidspekorg/semantic-release-helm 的下载量有多少?

根据 npm 官方下载统计,@davidspekorg/semantic-release-helm 在 2026/10/12 – 2026/11/10 这 30 天内被下载 8,311 次,日均约 277 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@davidspekorg/semantic-release-helm 还在维护吗?

最新版本 1.1.1 发布于 2024/11/25(2 年前);至今共发布 3 个版本,其中过去 12 个月发布了 0 个;首次发布于 2024/11/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。