diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cd18a2d..f8940c5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Node.js tests +name: Tests on: push: diff --git a/README.md b/README.md index 53cf6d4..86c0429 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Bee Factory -[![Tests](https://github.com/ethersphere/bee-factory/actions/workflows/tests.yaml/badge.svg)](https://github.com/ethersphere/bee-factory/actions/workflows/tests.yaml) -[![Dependency Status](https://david-dm.org/ethersphere/bee-factory.svg?style=flat-square)](https://david-dm.org/ethersphere/bee-factory) +[![Tests](https://github.com/ethersphere/bee-factory/actions/workflows/test.yaml/badge.svg)](https://github.com/ethersphere/bee-factory/actions/workflows/test.yaml) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fethersphere%2Fbee-factory.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fethersphere%2Fbee-factory?ref=badge_shield) [![](https://img.shields.io/badge/made%20by-Swarm-blue.svg?style=flat-square)](https://swarm.ethereum.org/) [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) diff --git a/src/utils/config-sources.ts b/src/utils/config-sources.ts index 75b2473..62ab95b 100644 --- a/src/utils/config-sources.ts +++ b/src/utils/config-sources.ts @@ -1,6 +1,8 @@ -import { readFile } from 'fs/promises' +import { readFile as readFileCb } from 'fs' import * as path from 'path' +import { promisify } from 'util' +const readFile = promisify(readFileCb) const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/ export function stripCommit(version: string): string {