@diia-inhouse/workflow

中文文档
4.0.2发布于 2026/11/11TypeScriptESM + CJS近 30 天下载 5309

Workflow

原始使用文档
文档目录9 节
  1. Useful Links
  2. Getting Started
  3. Build Process
  4. 1. Clone codebase via git clone command
  5. 2. Go to code base root directory
  6. 3. Install npm dependencies
  7. 4. Build package
  8. How to contribute
  9. Licensing

Diia

This repository provides an overview over the flagship product Diia developed by the Ministry of Digital Transformation of Ukraine.

Diia is an app with access to citizen’s digital documents and government services.

The application was created so that Ukrainians could interact with the state in a few clicks, without spending their time on queues and paperwork - Diia open source application will help countries, companies and communities build a foundation for long-term relationships. At the heart of these relations are openness, efficiency and humanity.

We're pleased to share the Diia project with you.

TopicLinkDescription
Ministry of Digital Transformation of Ukrainehttps://thedigital.gov.ua/The Official homepage of the Ministry of Digital Transformation of Ukraine
Diia Apphttps://diia.gov.ua/The Official website for the Diia application

Getting Started

This repository contains the package with shared node.js configurations.

Build Process

1. Clone codebase via git clone command

Example:

git clone https://github.com/diia-open-source/be-pkg-workflow.git pkg-workflow

2. Go to code base root directory

cd ./pkg-workflow

3. Install npm dependencies

The installation of dependencies consists of the following 2 steps:

Each Diia service depends on dependencies from @diia-inhouse/<package> scope which are distributed across different repositories, are built separately, and aren't published into public npm registry.

The full list of such dependencies can be found in the target service package.json file in dependencies and devDependencies sections respectively.

Detailed instructions on how to link dependencies from @diia-inhouse/<package> scope are described in LINKDEPS.md which can be found here https://github.com/diia-open-source/diia-setup-howto/tree/main/backend

2. Install public npm dependencies and use those linked from @diia-inhouse scope

In order to install and use the linked dependencies for pkg-workflow the following command can be used:

$ cd ./pkg-workflow
$ npm link @diia-inhouse/db @diia-inhouse/redis ... @diia-inhouse/<package-name>

In case all dependencies from @diia-inhouse scope are linked, and can be resolved, you will then have a complete list of dependencies installed for the service code base.


4. Build package

In order to build the service you have to run the command npm run build inside the root directory of service code base as per:

$ cd ./pkg-workflow
$ npm run build

How to contribute

The Diia project welcomes contributions into this solution; please refer to the CONTRIBUTING.md file for details

Licensing

Copyright (C) Diia and all other contributors.

Licensed under the EUPL (the "License"); you may not use this file except in compliance with the License. Re-use is permitted, although not encouraged, under the EUPL, with the exception of source files that contain a different license.

You may obtain a copy of the License at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.

Questions regarding the Diia project, the License and any re-use should be directed to [email protected].

This project incorporates third party material. In all cases the original copyright notices and the license under which these third party dependencies were provided remains as so. In relation to the Typescript dependency you should also review the Typescript Third Party Notices.

版本与发布记录

@diia-inhouse/workflow 共发布 117 个版本,首次发布于 2026/03/07;过去 12 个月发布了 117 个版本。

版本发布日期距今
4.0.2latest2026/11/111 天前
4.0.12026/11/093 天前
4.0.02026/11/093 天前
3.4.662026/11/093 天前
3.4.652026/11/084 天前
3.4.642026/11/066 天前

关于 @diia-inhouse/workflow 的常见问题

@diia-inhouse/workflow 是什么?

Workflow

如何安装 @diia-inhouse/workflow?

在项目目录运行 npm install @diia-inhouse/workflow,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:long(>=5.3.2 <6.0.0)、protobufjs(>=8.7.1 <9.0.0)、@diia-inhouse/env(>=3.0.0)、@diia-inhouse/types(>=13.0.0)、@diia-inhouse/utils(>=6.0.0)、@diia-inhouse/diia-logger(>=4.0.0)、@diia-inhouse/diia-metrics(>=7.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 diia-workflow,可以用 npx diia-workflow 直接运行。

@diia-inhouse/workflow 支持 TypeScript 吗?

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

@diia-inhouse/workflow 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@diia-inhouse/workflow 需要什么版本的 Node.js?

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

@diia-inhouse/workflow 可以商用吗?

@diia-inhouse/workflow 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@diia-inhouse/workflow 的下载量有多少?

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

@diia-inhouse/workflow 还在维护吗?

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