mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
fix: path does not exist
This commit is contained in:
parent
a3cfc7af9c
commit
9c73836de3
2 changed files with 4 additions and 2 deletions
3
dist/setup.js
vendored
3
dist/setup.js
vendored
|
@ -5,7 +5,7 @@ import * as action from "@actions/core";
|
||||||
import { downloadTool, extractZip } from "@actions/tool-cache";
|
import { downloadTool, extractZip } from "@actions/tool-cache";
|
||||||
import * as cache from "@actions/cache";
|
import * as cache from "@actions/cache";
|
||||||
import { restoreCache, saveCache } from "@actions/cache";
|
import { restoreCache, saveCache } from "@actions/cache";
|
||||||
import { cp, rmRF } from "@actions/io";
|
import { cp, mkdirP, rmRF } from "@actions/io";
|
||||||
import { getExecOutput } from "@actions/exec";
|
import { getExecOutput } from "@actions/exec";
|
||||||
export default async (options) => {
|
export default async (options) => {
|
||||||
const { url, cacheKey } = getDownloadUrl(options);
|
const { url, cacheKey } = getDownloadUrl(options);
|
||||||
|
@ -33,6 +33,7 @@ export default async (options) => {
|
||||||
const zipPath = await downloadTool(url);
|
const zipPath = await downloadTool(url);
|
||||||
const extractedPath = await extractZip(zipPath);
|
const extractedPath = await extractZip(zipPath);
|
||||||
const exePath = await extractBun(extractedPath);
|
const exePath = await extractBun(extractedPath);
|
||||||
|
await mkdirP(dir);
|
||||||
await cp(exePath, path);
|
await cp(exePath, path);
|
||||||
await rmRF(exePath);
|
await rmRF(exePath);
|
||||||
version = await verifyBun(path);
|
version = await verifyBun(path);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as action from "@actions/core";
|
||||||
import { downloadTool, extractZip } from "@actions/tool-cache";
|
import { downloadTool, extractZip } from "@actions/tool-cache";
|
||||||
import * as cache from "@actions/cache";
|
import * as cache from "@actions/cache";
|
||||||
import { restoreCache, saveCache } from "@actions/cache";
|
import { restoreCache, saveCache } from "@actions/cache";
|
||||||
import { cp, rmRF } from "@actions/io";
|
import { cp, mkdirP, rmRF } from "@actions/io";
|
||||||
import { getExecOutput } from "@actions/exec";
|
import { getExecOutput } from "@actions/exec";
|
||||||
|
|
||||||
export default async (options?: {
|
export default async (options?: {
|
||||||
|
@ -41,6 +41,7 @@ export default async (options?: {
|
||||||
const zipPath = await downloadTool(url);
|
const zipPath = await downloadTool(url);
|
||||||
const extractedPath = await extractZip(zipPath);
|
const extractedPath = await extractZip(zipPath);
|
||||||
const exePath = await extractBun(extractedPath);
|
const exePath = await extractBun(extractedPath);
|
||||||
|
await mkdirP(dir);
|
||||||
await cp(exePath, path);
|
await cp(exePath, path);
|
||||||
await rmRF(exePath);
|
await rmRF(exePath);
|
||||||
version = await verifyBun(path);
|
version = await verifyBun(path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue