@bifravst/ci

中文文档
3.0.3发布于 2026/10/30BSD-3-ClauseTypeScriptES Module零依赖构建来源已验证近 30 天下载 3687

Sets up the permissions in our CI account for all repositories in this account to be able to use it for CI runs.

原始使用文档

Bifravst CI npm version

GitHub Actions semantic-release Renovate @commitlint/config-conventional code style: prettier ESLint: TypeScript

Sets up the permissions in our AWS CI account for the repositories in this GitHub organization that are supposed to have access so they are be able to use it for CI runs.

The allowed list of repositories is managed via the repos.txt file.

[!CAUTION]
Do not run this against the production account, but against the CI account.

npx cdk deploy

Node & NPM

This project requires Node.js >=24.22.1 <25 || >=26.12.1 <27 and npm >=12.0.2 <13 (enforced via check-node-version on npm install and npm ci).

The check is skipped during npm publish and npm pack, because semantic-release bundles its own npm (@semantic-release/npm depends on npm@^11.6.2) and runs the publish with that version rather than the one installed in CI.

TypeScript 6 and 7

This repo runs TypeScript 6 and 7 side by side, so that eslint works.

版本与发布记录

@bifravst/ci 共发布 14 个版本,首次发布于 2024/04/06;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.0.3latest2026/10/308 天前
3.0.22026/10/1919 天前
3.0.12026/08/172 个月前
3.0.02026/08/172 个月前
2.1.32026/08/043 个月前
2.1.22026/08/043 个月前

其他发布通道:migrate-to-bifravst → 2.0.2-migrate-to-bifravst.1,update-dependencies-2026-08-04 → 2.1.2-update-dependencies-2026-08-04.1。

关于 @bifravst/ci 的常见问题

@bifravst/ci 是什么?

Sets up the permissions in our CI account for all repositories in this account to be able to use it for CI runs.

如何安装 @bifravst/ci?

在项目目录运行 npm install @bifravst/ci,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:chalk(6.x)、@aws-sdk/client-iam(>=3.1111.0 <4)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bifravst/ci 支持 TypeScript 吗?

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

@bifravst/ci 支持 ESM 还是 CommonJS?

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

@bifravst/ci 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.22.1 <25 || >=26.12.1 <27。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bifravst/ci 可以商用吗?

@bifravst/ci 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@bifravst/ci 的下载量有多少?

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

@bifravst/ci 还在维护吗?

最新版本 3.0.3 发布于 2026/10/30(8 天前);至今共发布 14 个版本,其中过去 12 个月发布了 7 个;首次发布于 2024/04/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。