This commit is contained in:
Copilot 2025-10-06 23:18:46 -04:00 committed by GitHub
commit 60cc9a2e21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 20 additions and 11 deletions

View file

@ -12,9 +12,6 @@ updates:
- dependency-name: node-fetch
versions:
- ">=3.0.0"
- dependency-name: "@types/node"
versions:
- ">=22.0.0"
commit-message:
prefix: "chore(deps)"
- package-ecosystem: github-actions

View file

@ -6,6 +6,12 @@
* feat(action): respect working_directory for files globs by @stephenway in https://github.com/softprops/action-gh-release/pull/667
### Other Changes 🔄
* Move action runtime to node24 and require Node >=24
* Update @types/node to ^22 for Node 24 compatibility
* Enable Dependabot updates for @types/node >=22
## 2.3.4
## What's Changed

View file

@ -71,7 +71,7 @@ outputs:
assets:
description: "JSON array containing information about each uploaded asset, in the format given [here](https://docs.github.com/en/rest/reference/repos#upload-a-release-asset--code-samples) (minus the `uploader` field)"
runs:
using: "node20"
using: "node24"
main: "dist/index.js"
branding:
color: "green"

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

11
package-lock.json generated
View file

@ -18,7 +18,7 @@
"devDependencies": {
"@types/glob": "^9.0.0",
"@types/mime-types": "^3.0.1",
"@types/node": "^20.19.19",
"@types/node": "^22",
"@vercel/ncc": "^0.38.4",
"@vitest/coverage-v8": "^3.2.4",
"prettier": "3.6.2",
@ -26,6 +26,9 @@
"typescript": "^5.9.3",
"typescript-formatter": "^7.2.2",
"vitest": "^3.1.4"
},
"engines": {
"node": ">=24"
}
},
"node_modules/@actions/core": {
@ -1482,9 +1485,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "20.19.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.19.tgz",
"integrity": "sha512-pb1Uqj5WJP7wrcbLU7Ru4QtA0+3kAXrkutGiD26wUKzSMgNNaPARTUDQmElUXp64kh3cWdou3Q0C7qwwxqSFmg==",
"version": "22.18.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.8.tgz",
"integrity": "sha512-pAZSHMiagDR7cARo/cch1f3rXy0AEXwsVsVH09FcyeJVAzCnGgmYis7P3JidtTUjyadhTeSo8TgRPswstghDaw==",
"dev": true,
"license": "MIT",
"dependencies": {

View file

@ -21,6 +21,9 @@
"actions"
],
"author": "softprops",
"engines": {
"node": ">=24"
},
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
@ -32,7 +35,7 @@
"devDependencies": {
"@types/glob": "^9.0.0",
"@types/mime-types": "^3.0.1",
"@types/node": "^20.19.19",
"@types/node": "^22",
"@vercel/ncc": "^0.38.4",
"@vitest/coverage-v8": "^3.2.4",
"prettier": "3.6.2",

View file

@ -183,7 +183,7 @@ export const upload = async (
'content-type': mime,
authorization: `token ${config.github_token}`,
},
data: fh.readableWebStream({ type: 'bytes' }),
data: fh.readableWebStream(),
});
const json = resp.data;
if (resp.status !== 201) {