mirror of
https://github.com/seepine/action-miniprogram-ci.git
synced 2025-01-18 18:56:36 +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",
|
"@actions/core": "1.10.0",
|
||||||
"jimp": "0.22.10",
|
"jimp": "0.22.10",
|
||||||
"jsqr": "1.4.0",
|
"jsqr": "1.4.0",
|
||||||
"qrcode-terminal": "0.12.0",
|
"qrcode-terminal": "0.12.0"
|
||||||
"tt-ide-cli": "0.1.27"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.16.3",
|
"@types/node": "18.16.3",
|
||||||
|
@ -9,7 +9,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
|||||||
cp.execSync(
|
cp.execSync(
|
||||||
[
|
[
|
||||||
'npx',
|
'npx',
|
||||||
`tma@${option.ciVersion || '0.1.27'}`,
|
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||||
'set-app-config',
|
'set-app-config',
|
||||||
option.appid,
|
option.appid,
|
||||||
'--token',
|
'--token',
|
||||||
@ -19,7 +19,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
|||||||
|
|
||||||
const command = [
|
const command = [
|
||||||
'npx',
|
'npx',
|
||||||
`tma@${option.ciVersion || '0.1.27'}`,
|
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||||
'preview',
|
'preview',
|
||||||
...getArgs(option),
|
...getArgs(option),
|
||||||
'--qrcode-output',
|
'--qrcode-output',
|
||||||
@ -29,7 +29,7 @@ export const preview = async (option: Preview): Promise<string> => {
|
|||||||
core.info('Command:')
|
core.info('Command:')
|
||||||
core.info(` ${command}`)
|
core.info(` ${command}`)
|
||||||
cp.execSync(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') {
|
if (option.qrcodeFormat === 'terminal') {
|
||||||
const qrcodeData = await getQrCode(option.qrcodeOutputDest)
|
const qrcodeData = await getQrCode(option.qrcodeOutputDest)
|
||||||
const qrcode = await generate(qrcodeData)
|
const qrcode = await generate(qrcodeData)
|
||||||
|
@ -7,7 +7,7 @@ export const upload = async (option: Upload): Promise<void> => {
|
|||||||
cp.execSync(
|
cp.execSync(
|
||||||
[
|
[
|
||||||
'npx',
|
'npx',
|
||||||
`tma@${option.ciVersion || '0.1.27'}`,
|
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||||
'set-app-config',
|
'set-app-config',
|
||||||
option.appid,
|
option.appid,
|
||||||
'--token',
|
'--token',
|
||||||
@ -16,7 +16,7 @@ export const upload = async (option: Upload): Promise<void> => {
|
|||||||
)
|
)
|
||||||
const command = [
|
const command = [
|
||||||
'npx',
|
'npx',
|
||||||
`tma@${option.ciVersion || '0.1.27'}`,
|
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
|
||||||
'upload',
|
'upload',
|
||||||
...getArgs(option),
|
...getArgs(option),
|
||||||
option.projectPath
|
option.projectPath
|
||||||
@ -24,5 +24,5 @@ export const upload = async (option: Upload): Promise<void> => {
|
|||||||
core.info('Command:')
|
core.info('Command:')
|
||||||
core.info(` ${command}`)
|
core.info(` ${command}`)
|
||||||
cp.execSync(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