forked from cerc-io/registry-sdk
versioning record attributes
This commit is contained in:
1 parent
1793a890d9
commit
0ace77c778
4 files changed
+52
-3
No files matched your search
@@ -4,3 +4,4 @@ record:
|
||||
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
version: 1.0.11
|
||||
@@ -7,15 +7,15 @@ import { DEFAULT_CHAIN_ID, Registry } from '../index';
|
||||
|
||||
export const ensureUpdatedConfig = async (path: string) => {
|
||||
const conf = await yaml.read(path);
|
||||
// conf.record.version = semver.inc(conf.record.version, 'patch');
|
||||
// await yaml.write(path, conf);
|
||||
conf.record.version = semver.inc(conf.record.version, 'patch');
|
||||
await yaml.write(path, conf);
|
||||
|
||||
return conf;
|
||||
};
|
||||
|
||||
export const getBaseConfig = async (path: string) => {
|
||||
const conf = await yaml.read(path);
|
||||
// conf.record.version = '0.0.1';
|
||||
conf.record.version = '0.0.1';
|
||||
|
||||
return conf;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user