Compare commits

...

5 Commits

Author SHA1 Message Date
Zoltan Kochan
0e9c99a89a
rename PNPM_HOME to PNPM_HOME_PATH 2022-02-07 23:01:43 +02:00
Zoltan Kochan
9087a16275
rebundle 2022-02-07 22:54:57 +02:00
Zoltan Kochan
9c583927b0
fix: update deps 2022-02-07 22:49:02 +02:00
Zoltan Kochan
43a416008e
fix: add PNPM_HOME env variable 2022-02-07 03:33:01 +02:00
Zoltan Kochan
eb99e9e4c7
fix: add pnpm to PATH 2022-02-07 03:26:03 +02:00
4 changed files with 493 additions and 511 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -7,21 +7,21 @@
"start": "pnpm run build && sh ./run.sh"
},
"dependencies": {
"node-fetch": "^2.6.1",
"expand-tilde": "^2.0.2",
"js-yaml": "^4.0.0",
"ajv": "^6.12.5",
"fs-extra": "^9.1.0",
"@actions/core": "^1.2.6",
"@actions/core": "^1.6.0",
"@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"
"@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",
"fs-extra": "^9.1.0",
"js-yaml": "^4.1.0",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"typescript": "^4.2.3",
"@ts-schema-autogen/cli": "^0.1.2",
"@vercel/ncc": "^0.27.0"
"@vercel/ncc": "^0.27.0",
"typescript": "^4.5.5"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
import * as core from '@actions/core'
import { spawn } from 'child_process'
import { execPath } from 'process'
import { join } from 'path'
@ -22,10 +23,16 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
const response = await fetch('https://pnpm.js.org/pnpm.js')
response.body.pipe(cp.stdin)
return new Promise((resolve, reject) => {
const result = await new Promise<number>((resolve, reject) => {
cp.on('error', reject)
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