Skip to content

Commit

Permalink
chore: fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 6, 2023
1 parent 7a58cda commit 108b206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default async function(version: string) {
writeTextFile('Cargo.toml', toml.replace(/version = "\d+\.\d+\.\d+"/, `version = "${version}"`));
writeTextFile('README.md', readTextFile('README.md').replace(/catj \d+\.\d+\.\d+/, `catj ${version}`));

await $`cargo publish`;
await $`git add .`;
await $`git commit -m "chore: release v${version}"`;
await $`git tag -a v${version} -m "chore: release v${version}"`;
await $`git push --tags origin main`;
await $`cargo publish`;
}

0 comments on commit 108b206

Please sign in to comment.