Skip to content

Commit d0eb7d8

Browse files
committed
chore: A way to skip checks before publishing, if we know tests already pass
1 parent ace8591 commit d0eb7d8

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ pnpm publish --dry-run # (if alpha, --tag alpha)
4343
```
4444

4545
5. If everything looks okay, then `pnpm publish` (if alpha, `--tag alpha`)
46+
47+
> **Tip:** If you already know all prepublish checks pass (tests, types, publish tag validation), you can skip them to speed up
48+
> publishing:
49+
>
50+
> ```bash
51+
> SKIP_ALL_CHECKS=true pnpm publish # (if alpha, --tag alpha)
52+
> ```
4653
6. Rebase _release_ branch on _main_
4754
7. Generate and edit release notes on GitHub
4855
8. Run `npx automd@latest`

packages/tgpu-dev-cli/prepack.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ async function main() {
136136
'--skip-all-checks': Boolean,
137137
});
138138

139-
if (!args['--skip-publish-tag-check'] && !args['--skip-all-checks']) {
139+
const skipAllChecks = args['--skip-all-checks'] || process.env.SKIP_ALL_CHECKS === 'true';
140+
141+
if (!args['--skip-publish-tag-check'] && !skipAllChecks) {
140142
verifyPublishTag();
141143
}
142144

@@ -199,7 +201,7 @@ async function main() {
199201
// First build
200202
...(await Promise.allSettled([withStatusUpdate('build', $`pnpm build`)])),
201203
// Then the rest
202-
...(args['--skip-all-checks']
204+
...(skipAllChecks
203205
? []
204206
: await Promise.allSettled([
205207
withStatusUpdate('style', $`pnpm -w test:style`),

0 commit comments

Comments
 (0)