Skip to content

Commit dede9df

Browse files
committed
chore(repo): Force canary release even if in pre mode
1 parent 0cfd8cf commit dede9df

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

scripts/canary.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ import { $, echo } from 'zx';
44

55
import { constants } from './common.mjs';
66

7+
const snapshot = `---
8+
'gatsby-plugin-clerk': patch
9+
'@clerk/chrome-extension': patch
10+
'@clerk/localizations': patch
11+
'@clerk/clerk-js': patch
12+
'@clerk/clerk-sdk-node': patch
13+
'@clerk/backend': patch
14+
'@clerk/fastify': patch
15+
'@clerk/nextjs': patch
16+
'@clerk/shared': patch
17+
'@clerk/themes': patch
18+
'@clerk/clerk-react': patch
19+
'@clerk/remix': patch
20+
'@clerk/types': patch
21+
'@clerk/clerk-expo': patch
22+
---
23+
24+
Canary release
25+
`;
26+
727
await $`npx json -I -f ${constants.ChangesetConfigFile} -e "this.changelog = false"`;
828

929
try {
@@ -13,6 +33,9 @@ try {
1333
// this will remove the prerelease versions
1434
// but will also clear the changeset .md files
1535
await $`npx changeset version`;
36+
// generate a temp .md file that indicates that all packages have changes
37+
// in order to force a snapshot release
38+
await $`touch .changeset/snap.md && echo ${snapshot} > .changeset/snap.md`;
1639
} catch (e) {
1740
// otherwise, do nothing
1841
}

0 commit comments

Comments
 (0)