Compare commits
No commits in common. "0e9c99a89af92a5b752202d87f72b3f20eb68328" and "15569a497d6aff479ba1c47c859888e22a431052" have entirely different histories.
0e9c99a89a
...
15569a497d
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
22
package.json
22
package.json
@ -7,21 +7,21 @@
|
|||||||
"start": "pnpm run build && sh ./run.sh"
|
"start": "pnpm run build && sh ./run.sh"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.6.0",
|
"node-fetch": "^2.6.1",
|
||||||
"@types/expand-tilde": "^2.0.0",
|
|
||||||
"@types/fs-extra": "^9.0.13",
|
|
||||||
"@types/js-yaml": "^4.0.5",
|
|
||||||
"@types/node": "^14.18.10",
|
|
||||||
"@types/node-fetch": "^2.5.12",
|
|
||||||
"ajv": "^6.12.6",
|
|
||||||
"expand-tilde": "^2.0.2",
|
"expand-tilde": "^2.0.2",
|
||||||
|
"js-yaml": "^4.0.0",
|
||||||
|
"ajv": "^6.12.5",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^9.1.0",
|
||||||
"js-yaml": "^4.1.0",
|
"@actions/core": "^1.2.6",
|
||||||
"node-fetch": "^2.6.7"
|
"@types/expand-tilde": "^2.0.0",
|
||||||
|
"@types/node-fetch": "^2.5.8",
|
||||||
|
"@types/js-yaml": "^4.0.0",
|
||||||
|
"@types/fs-extra": "^9.0.8",
|
||||||
|
"@types/node": "^14.14.35"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"typescript": "^4.2.3",
|
||||||
"@ts-schema-autogen/cli": "^0.1.2",
|
"@ts-schema-autogen/cli": "^0.1.2",
|
||||||
"@vercel/ncc": "^0.27.0",
|
"@vercel/ncc": "^0.27.0"
|
||||||
"typescript": "^4.5.5"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
973
pnpm-lock.yaml
973
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,3 @@
|
|||||||
import * as core from '@actions/core'
|
|
||||||
import { spawn } from 'child_process'
|
import { spawn } from 'child_process'
|
||||||
import { execPath } from 'process'
|
import { execPath } from 'process'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
@ -23,16 +22,10 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
|||||||
const response = await fetch('https://pnpm.js.org/pnpm.js')
|
const response = await fetch('https://pnpm.js.org/pnpm.js')
|
||||||
response.body.pipe(cp.stdin)
|
response.body.pipe(cp.stdin)
|
||||||
|
|
||||||
const result = await new Promise<number>((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
cp.on('error', reject)
|
cp.on('error', reject)
|
||||||
cp.on('close', resolve)
|
cp.on('close', resolve)
|
||||||
})
|
})
|
||||||
if (result === 0) {
|
|
||||||
const pnpmHome = join(dest, 'node_modules/.bin')
|
|
||||||
core.addPath(pnpmHome)
|
|
||||||
core.exportVariable('PNPM_HOME_PATH', pnpmHome)
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default runSelfInstaller
|
export default runSelfInstaller
|
||||||
|
Loading…
Reference in New Issue
Block a user