forked from cerc-io/registry-sdk
remove version from record
This commit is contained in:
parent
e295b8de36
commit
1793a890d9
@ -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
|
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user