File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 33
44# Except
55! .github
6+ ! scripts
67! src
78! README.md
89! .prettierrc
Original file line number Diff line number Diff line change 2424 "format" : " prettier --write ." ,
2525 "format:check" : " prettier --check ." ,
2626 "type:check" : " tsc --noEmit" ,
27- "type:check:package" : " pnpm dlx @arethetypeswrong/cli --profile node16 --pack ."
27+ "type:check:package" : " pnpm dlx @arethetypeswrong/cli --profile node16 --pack ." ,
28+ "release" : " node ./scripts/release.ts"
2829 },
2930 "keywords" : [
3031 " valorant" ,
Original file line number Diff line number Diff line change 1+ import { execSync } from "child_process" ;
2+ import { parseArgs } from "util" ;
3+
4+ const { positionals } = parseArgs ( {
5+ args : process . argv . slice ( 2 ) ,
6+ allowPositionals : true ,
7+ } ) ;
8+
9+ const version = positionals [ 0 ] ;
10+
11+ if ( ! version ) {
12+ throw new Error ( "version is required" ) ;
13+ }
14+
15+ execSync ( `pnpm version ${ version } -m "chore: release %s"` , {
16+ stdio : "inherit" ,
17+ } ) ;
18+ execSync ( `git push --follow-tags` , { stdio : "inherit" } ) ;
You can’t perform that action at this time.
0 commit comments