Buckets:
ktongue/docker_container / .cache /opencode /node_modules /opencode-anthropic-auth /script /publish.ts
| import { $ } from "bun"; | |
| const dir = new URL("..", import.meta.url).pathname; | |
| process.chdir(dir); | |
| const bumpType = process.argv[2] || "patch"; | |
| console.log(`Bumping ${bumpType} version...`); | |
| // Bump version in package.json | |
| await $`npm version ${bumpType} --no-git-tag-version`; | |
| // Read the new version | |
| const pkg = await Bun.file("./package.json").json(); | |
| const version = pkg.version; | |
| console.log(`New version: ${version}`); | |
| // Commit the version bump | |
| await $`git add package.json`; | |
| await $`git commit -m "Bump version to ${version}"`; | |
| await $`git push`; | |
| // Trigger GitHub workflow | |
| console.log(`Triggering publish workflow...`); | |
| await $`gh workflow run publish.yml -f bump="${bumpType}"`; | |
| console.log(`✓ Version bumped to ${version} and publish workflow triggered`); | |
Xet Storage Details
- Size:
- 795 Bytes
- Xet hash:
- e9567e91140524dac1a7460c9d2010e32e83b6bbd2075508031c3de9757f95f5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.