Skip to content

Commit 04acac9

Browse files
authored
fix canary release considered latest (#7)
1 parent 3116ed7 commit 04acac9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "whop-sdk-ts",
3-
"version": "0.0.2-canary.0",
3+
"version": "0.0.2-canary.1",
44
"private": true,
55
"workspaces": [
66
"apps/*",

packages/repo-utils/src/release.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ const main2 = async () => {
152152
latestCommit.sha,
153153
latestRelease?.target_commitish
154154
);
155-
await release(latestCommit.sha, stats, false);
155+
await release(
156+
latestCommit.sha,
157+
stats,
158+
/^v\d+\.\d+\.\d+-canary\.\d+$/.test(version)
159+
);
156160
};
157161
main2();

0 commit comments

Comments
 (0)