Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0f9c413e5 | ||
|
|
d744239ce1 | ||
|
|
bfac95679f | ||
|
|
640630d09e | ||
|
|
70b6cfe9d1 | ||
|
|
933334b350 |
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -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
|
||||||
|
|||||||
2
dist/utils/getGithubRelease.js
vendored
2
dist/utils/getGithubRelease.js
vendored
@@ -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 {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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', '')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user