File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
2
import { spawn } from 'child_process' ;
3
- import { input } from '@inquirer/prompts' ;
3
+ import { input , select } from '@inquirer/prompts' ;
4
4
import { executeCommand } from '../runner/utils/exec.js' ;
5
5
import { readFile , writeFile } from 'fs/promises' ;
6
6
@@ -20,6 +20,14 @@ const registry = 'https://wombat-dressing-room.appspot.com';
20
20
required : true ,
21
21
} ) ;
22
22
23
+ const distTag = await select ( {
24
+ choices : [
25
+ { name : 'Pre-release' , value : 'next' } ,
26
+ { name : 'Stable' , value : 'latest' } ,
27
+ ] ,
28
+ message : 'Select a release channel' ,
29
+ } ) ;
30
+
23
31
// Build the project.
24
32
await executeCommand (
25
33
`pnpm release-build --version=${ version } ` ,
@@ -36,7 +44,7 @@ const registry = 'https://wombat-dressing-room.appspot.com';
36
44
37
45
// Publish to npm.
38
46
await executeCommand (
39
- `npm --registry ${ registry } publish --access public --tag latest ` ,
47
+ `npm --registry ${ registry } publish --access public --tag ${ distTag } ` ,
40
48
distDirectory ,
41
49
undefined ,
42
50
{
You can’t perform that action at this time.
0 commit comments