mirror of
https://github.com/seepine/action-miniprogram-ci.git
synced 2025-01-18 10:51:08 +08:00
fix: replace to tt-ide-cli
This commit is contained in:
parent
73e3fda388
commit
53aca87be0
@ -28,8 +28,7 @@
|
||||
"@actions/core": "1.10.0",
|
||||
"jimp": "0.22.10",
|
||||
"jsqr": "1.4.0",
|
||||
"qrcode-terminal": "0.12.0",
|
||||
"tt-ide-cli": "0.1.27"
|
||||
"qrcode-terminal": "0.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "18.16.3",
|
||||
|
@ -9,7 +9,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
||||
cp.execSync(
|
||||
[
|
||||
'npx',
|
||||
`tma@${option.ciVersion || '0.1.27'}`,
|
||||
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||
'set-app-config',
|
||||
option.appid,
|
||||
'--token',
|
||||
@ -19,7 +19,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
||||
|
||||
const command = [
|
||||
'npx',
|
||||
`tma@${option.ciVersion || '0.1.27'}`,
|
||||
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||
'preview',
|
||||
...getArgs(option),
|
||||
'--qrcode-output',
|
||||
@ -29,7 +29,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
||||
core.info('Command:')
|
||||
core.info(` ${command}`)
|
||||
cp.execSync(command)
|
||||
cp.execSync('npx tma logout')
|
||||
cp.execSync(`npx ${`tt-ide-cli@${option.ciVersion || '0.1.27'}`} logout`)
|
||||
if (option.qrcodeFormat === 'terminal') {
|
||||
const qrcodeData = await getQrCode(option.qrcodeOutputDest)
|
||||
const qrcode = await generate(qrcodeData)
|
||||
|
@ -7,7 +7,7 @@ export const upload = async (option: Upload): Promise<void> => {
|
||||
cp.execSync(
|
||||
[
|
||||
'npx',
|
||||
`tma@${option.ciVersion || '0.1.27'}`,
|
||||
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||
'set-app-config',
|
||||
option.appid,
|
||||
'--token',
|
||||
@ -16,7 +16,7 @@ export const upload = async (option: Upload): Promise<void> => {
|
||||
)
|
||||
const command = [
|
||||
'npx',
|
||||
`tma@${option.ciVersion || '0.1.27'}`,
|
||||
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||
'upload',
|
||||
...getArgs(option),
|
||||
option.projectPath
|
||||
@ -24,5 +24,5 @@ export const upload = async (option: Upload): Promise<void> => {
|
||||
core.info('Command:')
|
||||
core.info(` ${command}`)
|
||||
cp.execSync(command)
|
||||
cp.execSync('npx tma logout')
|
||||
cp.execSync(`npx ${`tt-ide-cli@${option.ciVersion || '0.1.27'}`} logout`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user