remove version from record

This commit is contained in:
0xmuralik 2022-12-28 16:12:34 +05:30
parent e295b8de36
commit 1793a890d9
2 changed files with 3 additions and 4 deletions

View File

@ -4,4 +4,3 @@ record:
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
version: null

View File

@ -7,15 +7,15 @@ import { DEFAULT_CHAIN_ID, Registry } from '../index';
export const ensureUpdatedConfig = async (path: string) => { export const ensureUpdatedConfig = async (path: string) => {
const conf = await yaml.read(path); const conf = await yaml.read(path);
conf.record.version = semver.inc(conf.record.version, 'patch'); // conf.record.version = semver.inc(conf.record.version, 'patch');
await yaml.write(path, conf); // await yaml.write(path, conf);
return conf; return conf;
}; };
export const getBaseConfig = async (path: string) => { export const getBaseConfig = async (path: string) => {
const conf = await yaml.read(path); const conf = await yaml.read(path);
conf.record.version = '0.0.1'; // conf.record.version = '0.0.1';
return conf; return conf;
}; };