Skip to content

Commit a1ace60

Browse files
authored
fixed canary release notes (#8)
1 parent 04acac9 commit a1ace60

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
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.1",
3+
"version": "0.0.2-canary.2",
44
"private": true,
55
"workspaces": [
66
"apps/*",

packages/repo-utils/src/release.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,13 @@ const main2 = async () => {
146146
console.log(`${version} has already been release`);
147147
return;
148148
}
149-
const latestRelease = await getLatestRelease(false);
149+
const prerelease = /^v\d+\.\d+\.\d+-canary\.\d+$/.test(version);
150+
const latestRelease = await getLatestRelease(prerelease);
150151
const latestCommit = await getLatestCommit();
151152
const stats = await collectCommits(
152153
latestCommit.sha,
153154
latestRelease?.target_commitish
154155
);
155-
await release(
156-
latestCommit.sha,
157-
stats,
158-
/^v\d+\.\d+\.\d+-canary\.\d+$/.test(version)
159-
);
156+
await release(latestCommit.sha, stats, prerelease);
160157
};
161158
main2();

0 commit comments

Comments
 (0)