6 Commits

Author SHA1 Message Date
Hyro
705032ffe3 chore: bump version 2022-07-12 07:35:26 +02:00
Hyro
dd174af50e fix: change set-output name from deno-version to bun-version
change set-output name from `deno-version` to `bun-version`
2022-07-12 07:34:05 +02:00
Autumn Meadow
cb10b944b3 change set-output name from deno-version to bun-version 2022-07-11 13:51:39 -07:00
Hyro
01e07c2140 fix: readme 2022-07-11 17:00:34 +02:00
xHyroM
f482eca5c4 chore: workflow 2022-07-11 12:24:04 +02:00
xHyroM
3a3e838dbb chore: workflow 2022-07-11 12:19:26 +02:00
5 changed files with 12 additions and 12 deletions

View File

@@ -25,4 +25,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Try bun
run: bun --help
run: bun add types

View File

@@ -8,7 +8,7 @@ Set up your GitHub Actions workflow with a specific version of Bun.
### Latest stable
```yaml
- uses: xhyrom/setup-bun@v1
- uses: xhyrom/setup-bun@v0.1.0
with:
bun-version: latest
```
@@ -16,7 +16,7 @@ Set up your GitHub Actions workflow with a specific version of Bun.
### Specific version
```yaml
- uses: xhyrom/setup-bun@v1
- uses: xhyrom/setup-bun@v0.1.0
with:
bun-version: "0.1.2"
```
```

2
dist/index.js vendored
View File

@@ -16,7 +16,7 @@ const main = async () => {
return exit('Invalid bun version.');
info(`Going to install release ${release.tag_name}`);
await install(release);
setOutput('deno-version', release.tag_name);
setOutput('bun-version', release.tag_name);
}
catch (e) {
exit(e);

View File

@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"version": "0.1.1",
"name": "setup-bun",
"main": "dist/index.js",
"type": "module",
@@ -15,4 +15,4 @@
"@actions/tool-cache": "^2.0.1",
"node-fetch": "^3.2.6"
}
}
}

View File

@@ -11,20 +11,20 @@ const main = async() => {
try {
const version = getInput('bun-version');
const token = getInput('github-token');
if (!version) return exit('Invalid bun version.');
const release = await getGithubRelease(version, token);
if (release?.message === 'Not Found') return exit('Invalid bun version.');
info(`Going to install release ${release.tag_name}`);
await install(release);
setOutput('deno-version', release.tag_name);
setOutput('bun-version', release.tag_name);
} catch(e) {
exit(e);
}
}
main();
main();