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'
|
||||
|
||||
async function main() {
|
||||
const inputs = getInputs()
|
||||
|
||||
if (getState('is_post') === 'true') {
|
||||
await runPost()
|
||||
await runPost(inputs)
|
||||
} else {
|
||||
await runMain()
|
||||
await runMain(inputs)
|
||||
}
|
||||
}
|
||||
|
||||
async function runMain() {
|
||||
const inputs = getInputs()
|
||||
saveState('inputs', inputs)
|
||||
async function runMain(inputs: Inputs) {
|
||||
saveState('is_post', 'true')
|
||||
|
||||
const binDest = await installPnpm(inputs)
|
||||
@@ -30,8 +30,7 @@ async function runMain() {
|
||||
pnpmInstall(inputs)
|
||||
}
|
||||
|
||||
async function runPost() {
|
||||
const inputs = JSON.parse(getState('inputs')) as Inputs
|
||||
async function runPost(inputs: Inputs) {
|
||||
pruneStore(inputs)
|
||||
await saveCache(inputs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user