mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
Next release of setup-bun
This commit is contained in:
parent
ed9eb0969c
commit
9c14b74b45
1082 changed files with 242557 additions and 173810 deletions
17
dist/action.js
vendored
Normal file
17
dist/action.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { tmpdir } from "node:os";
|
||||
import * as action from "@actions/core";
|
||||
import setup from "./setup.js";
|
||||
if (!process.env.RUNNER_TEMP) {
|
||||
process.env.RUNNER_TEMP = tmpdir();
|
||||
}
|
||||
setup({
|
||||
version: action.getInput("bun-version") || undefined,
|
||||
customUrl: action.getInput("bun-download-url") || undefined,
|
||||
})
|
||||
.then(({ version, cacheHit }) => {
|
||||
action.setOutput("bun-version", version);
|
||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
||||
})
|
||||
.catch((error) => {
|
||||
action.setFailed(error);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue