6 Commits

Author SHA1 Message Date
xHyroM
a0f9c413e5 chore(workflows): update test 2022-07-16 18:53:20 +02:00
xHyroM
d744239ce1 chore(workflows): update test 2022-07-16 18:52:25 +02:00
xHyroM
bfac95679f chore(workflows): update test 2022-07-16 18:50:53 +02:00
xHyroM
640630d09e chore: bump version 2022-07-16 18:48:17 +02:00
xHyroM
70b6cfe9d1 chore: build 2022-07-16 18:47:40 +02:00
Hyro
933334b350 fix(getGithubRelease): correct token pass 2022-07-16 18:46:00 +02:00
4 changed files with 5 additions and 7 deletions

View File

@@ -16,13 +16,12 @@ jobs:
bun-version: bun-version:
["latest", "0.1.3", "latest"] ["latest", "0.1.3", "latest"]
misc-test-builds: misc-test-builds:
[false, true] [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }} - name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }}
if: matrix.os != 'macos-latest' && matrix.misc-test-builds != true
uses: ./ uses: ./
with: with:
bun-version: ${{ matrix.bun-version }} bun-version: ${{ matrix.bun-version }}
@@ -30,6 +29,5 @@ jobs:
misc-test-builds: ${{ matrix.misc-test-builds }} misc-test-builds: ${{ matrix.misc-test-builds }}
- name: Try bun - name: Try bun
if: matrix.os != 'macos-latest' && matrix.misc-test-builds != true
run: | run: |
bun --version bun --version

View File

@@ -10,7 +10,7 @@ export default async (version, token, miscTestBuilds) => {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'User-Agent': 'setup-bun-github-action', 'User-Agent': 'setup-bun-github-action',
'Authorization': token 'Authorization': `token ${token}`
} }
})).json(); })).json();
return { return {

View File

@@ -1,5 +1,5 @@
{ {
"version": "0.1.3", "version": "0.1.4",
"name": "setup-bun", "name": "setup-bun",
"main": "dist/index.js", "main": "dist/index.js",
"type": "module", "type": "module",

View File

@@ -25,7 +25,7 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'User-Agent': 'setup-bun-github-action', 'User-Agent': 'setup-bun-github-action',
'Authorization': token 'Authorization': `token ${token}`
} }
})).json(); })).json();
@@ -33,4 +33,4 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
...release, ...release,
version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '') version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '')
}; };
} }