mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
#2 issue2 dependabot[bot] commit
This commit is contained in:
parent
ded9a6a738
commit
3b53e8d75f
3 changed files with 5 additions and 5 deletions
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
|
@ -13,6 +13,6 @@ updates:
|
|||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
interval: daily
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
"@octokit/plugin-retry": "^7.1.1",
|
||||
"@octokit/plugin-throttling": "^9.3.1",
|
||||
"glob": "^11.0.0",
|
||||
"mime": "^3.0.0"
|
||||
"mime": "^4.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "^8.1.0",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/mime": "^3.0.1",
|
||||
"@types/mime": "^4.0.0",
|
||||
"@types/node": "^20.14.11",
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
"jest": "^29.3.1",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { GitHub } from "@actions/github/lib/utils";
|
||||
import { Config, isTag, releaseBody } from "./util";
|
||||
import { statSync, readFileSync } from "fs";
|
||||
import { getType } from "mime";
|
||||
import { mime } from "mime";
|
||||
import { basename } from "path";
|
||||
|
||||
type GitHub = InstanceType<typeof GitHub>;
|
||||
|
@ -150,7 +150,7 @@ export const asset = (path: string): ReleaseAsset => {
|
|||
};
|
||||
|
||||
export const mimeOrDefault = (path: string): string => {
|
||||
return getType(path) || "application/octet-stream";
|
||||
return mime.getType(path) || "application/octet-stream";
|
||||
};
|
||||
|
||||
export const upload = async (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue