Compare commits
4
Commits
v1
..
fixing-windows
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9979c3d928 | ||
|
|
738fb9213f | ||
|
|
8925cc44da | ||
|
|
7574328996 |
@@ -28,7 +28,7 @@ Expanded path of inputs#dest.
|
||||
|
||||
### `bin_dest`
|
||||
|
||||
Expanded path of inputs@bin_dest.
|
||||
Expanded path of inputs#bin_dest.
|
||||
|
||||
## Usage example
|
||||
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: pnpm/action-setup@v1
|
||||
- uses: pnpm/action-setup@v1.1.0
|
||||
with:
|
||||
version: 4.11.1
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -6,11 +6,11 @@
|
||||
"start": "pnpm run build && sh ./run.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"download": "^8.0.0",
|
||||
"node-fetch": "^2.6.0",
|
||||
"expand-tilde": "^2.0.2",
|
||||
"@actions/core": "^1.2.4",
|
||||
"@types/download": "^6.2.4",
|
||||
"@types/expand-tilde": "^2.0.0",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
"@types/node": "^13.13.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Generated
+33
-737
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -3,7 +3,7 @@ import { execPath } from 'process'
|
||||
import { downloadSelfInstaller } from '../self-installer'
|
||||
import { Inputs } from '../inputs'
|
||||
|
||||
export function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
const cp = spawn(execPath, {
|
||||
env: {
|
||||
PNPM_VERSION: inputs.version,
|
||||
@@ -14,7 +14,8 @@ export function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
stdio: ['pipe', 'inherit', 'inherit'],
|
||||
})
|
||||
|
||||
downloadSelfInstaller().pipe(cp.stdin)
|
||||
const response = await downloadSelfInstaller()
|
||||
response.body.pipe(cp.stdin)
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
cp.on('error', reject)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import download from 'download'
|
||||
import fetch from 'node-fetch'
|
||||
import url from './url'
|
||||
export const downloadSelfInstaller = () => download(url)
|
||||
export const downloadSelfInstaller = () => fetch(url)
|
||||
export default downloadSelfInstaller
|
||||
|
||||
Reference in New Issue
Block a user