Replies: 3 comments 8 replies
-
yarn deploy
yarn run v1.22.19
$ graph deploy --node https://api.studio.thegraph.com/deploy/ cryptopunks-aggregations-test
Which version label to use? (e.g. "v0.0.1"): v0.0.3 |
Beta Was this translation helpful? Give feedback.
7 replies
-
This is some code that I saw in the wild from @GundamDweeb : const executeStudioDeployWithVersionIncrement = async (subgraphName, version) => {
let [major, minor, patch] = version
.split('.')
const cmd = `yarn deploy-studio ${subgraphName} -l=${major}.${minor}.${ parseInt(patch)}`
let stderr = await executeComanndErrorReturn(cmd)
if(stderr){
if(stderr.includes("Version label already exists")){
console.log(`Stuido version for ${subgraphName} exists - attempting deploy with version - ${major}.${minor}.${parseInt(patch)+1}`)
return executeStudioDeployWithVersionIncrement(subgraphName, `${major}.${minor}.${parseInt(patch)+1}`)
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
@saihaj I think there was some progress on this, no? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is very annoying to always enter a new version label, especially when following semver. Can't we just suggest the next patch version?
v0.0.1
v0.0.2
v1.0.0
suggest next: `v1.0.1Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions