File tree 4 files changed +29
-180
lines changed
4 files changed +29
-180
lines changed Original file line number Diff line number Diff line change 78
78
- name : Install dependencies
79
79
run : pnpm install
80
80
- name : Check for changes in app router
81
- run : ./next-release-analyser.mjs
81
+ run : ./next-release-analyser.mjs --version ${{ inputs.version }}
82
82
working-directory : packages/scripts
83
83
env :
84
84
MAILPACE_API_TOKEN : ${{ secrets.MAILPACE_API_TOKEN }}
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env zx
1
+ #!/usr/bin/env node
2
2
// @ts -check
3
3
4
4
import MailPace from '@mailpace/mailpace.js'
5
5
import { createEnv } from '@t3-oss/env-core'
6
+ import minimist from 'minimist'
6
7
import { z } from 'zod'
7
- import 'zx/globals'
8
8
9
9
const canaryRegexp = / ^ ( \d + ) \. ( \d + ) \. ( \d + ) - c a n a r y \. ( \d + ) $ /
10
10
@@ -26,6 +26,7 @@ const fileSchema = z.object({
26
26
} )
27
27
28
28
async function main ( ) {
29
+ const argv = minimist ( process . argv . slice ( 2 ) )
29
30
const thisVersion = argv . version
30
31
const previousVersion = getPreviousVersion ( argv . version )
31
32
Original file line number Diff line number Diff line change 6
6
"dependencies" : {
7
7
"@mailpace/mailpace.js" : " ^0.1.1" ,
8
8
"@t3-oss/env-core" : " ^0.9.2" ,
9
- "zod " : " ^3.22.4 " ,
10
- "zx " : " ^7.2.3 "
9
+ "minimist " : " ^1.2.8 " ,
10
+ "zod " : " ^3.22.4 "
11
11
},
12
12
"devDependencies" : {
13
+ "@types/minimist" : " ^1.2.5" ,
14
+ "@types/node" : " ^20.11.17" ,
13
15
"typescript" : " ^5.3.3"
14
16
}
15
17
}
You can’t perform that action at this time.
0 commit comments