Files
semaphore/scripts/version.ts
sripwoud 0d41562dad chore: publish contracts to soldeer (#820)
* chore: define separate version.ts script

* chore: include publishing to soldeer in script

* fix(contracts): push to soldeer

re 800

* ci: fetch latest contract version from soldeer

* refactor: do not use execa in scripts

* fix: do not exit process in script

* chore: remove comments

* refactor: use shebang in ts scripts

* chore(contracts): add soldeerignore

* chore: inherit stdio in scripts

* chore: remove dry run flag

* chore: uncomment

* chore: fix typo in comment
2024-08-28 16:26:48 +02:00

26 lines
677 B
TypeScript
Executable File

#!node_modules/.bin/ts-node
import { execSync } from "child_process"
async function main() {
const version = process.argv[2]
// Perform the workspaces version update
execSync(`yarn workspaces foreach -A --no-private version -d ${version}`, { stdio: "inherit" })
// Apply the versions
execSync("yarn version apply --all", { stdio: "inherit" })
await import("./remove-stable-version-field")
execSync("yarn format:write")
execSync(`NO_HOOK=1 git commit -am 'chore: v${version}'`)
execSync(`git tag v${version}`)
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})