Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b635341b3e | |||
| 025de3876f | |||
| 5c388c2b3b | |||
| 84fa52c3d7 | |||
| 07ad39cba4 | |||
| 052c4ffb7d |
@@ -1 +0,0 @@
|
|||||||
* @zkochan
|
|
||||||
Vendored
+71
-71
File diff suppressed because one or more lines are too long
+6
-7
@@ -8,16 +8,16 @@ import pnpmInstall from './pnpm-install'
|
|||||||
import pruneStore from './pnpm-store-prune'
|
import pruneStore from './pnpm-store-prune'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const inputs = getInputs()
|
||||||
|
|
||||||
if (getState('is_post') === 'true') {
|
if (getState('is_post') === 'true') {
|
||||||
await runPost()
|
await runPost(inputs)
|
||||||
} else {
|
} else {
|
||||||
await runMain()
|
await runMain(inputs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runMain() {
|
async function runMain(inputs: Inputs) {
|
||||||
const inputs = getInputs()
|
|
||||||
saveState('inputs', inputs)
|
|
||||||
saveState('is_post', 'true')
|
saveState('is_post', 'true')
|
||||||
|
|
||||||
const binDest = await installPnpm(inputs)
|
const binDest = await installPnpm(inputs)
|
||||||
@@ -30,8 +30,7 @@ async function runMain() {
|
|||||||
pnpmInstall(inputs)
|
pnpmInstall(inputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runPost() {
|
async function runPost(inputs: Inputs) {
|
||||||
const inputs = JSON.parse(getState('inputs')) as Inputs
|
|
||||||
pruneStore(inputs)
|
pruneStore(inputs)
|
||||||
await saveCache(inputs)
|
await saveCache(inputs)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user