c43d7637b9
chore: fmt code
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
2025-01-07 13:50:06 -05:00
deddb09c64
fix: big file uploads ( #562 )
...
* fix: use readableWebStream() to stream asset contents
This allows the uploads to finish without mismatched Content-Length,
likely because the original method implied a wrong body encoding or
something similar. Unfortunately a GitHub server API mock was not
readily available so I had to test manually with a barebones repository.
Fixes : #555
Fixes : #556
Signed-off-by: WANG Xuerui <git@xen0n.name >
* feat: log when each asset is successfully uploaded
Signed-off-by: WANG Xuerui <git@xen0n.name >
* build: refresh dist
Signed-off-by: WANG Xuerui <git@xen0n.name >
* style: format with prettier
Signed-off-by: WANG Xuerui <git@xen0n.name >
---------
Signed-off-by: WANG Xuerui <git@xen0n.name >
2025-01-07 13:42:55 -05:00
33fcd69d45
chore: update error and warning messages for not matching files in files field ( #568 )
2025-01-07 13:41:34 -05:00
64f1fa19ef
feat: read the release assets asynchronously ( #552 )
...
Previously all assets were being read synchronously into memory, making
the action unsuitable for releasing very large assets. Because the
client library allows stream body inputs (it just forwards it to the
underlying `fetch` implementation), just do it.
The idea is also suggested by @enumag in
https://github.com/softprops/action-gh-release/issues/353#issuecomment-1793865790 .
Fixes : #353
Signed-off-by: WANG Xuerui <git@xen0n.name >
2024-12-10 21:19:13 -05:00
d5f028c822
feature: preserve upload order ( #500 )
...
* Preserve upload order
* Update README.md
* Fix typings and add a test
* fmt code
Signed-off-by: Rui Chen <rui@chenrui.dev >
---------
Signed-off-by: Rui Chen <rui@chenrui.dev >
Co-authored-by: Richard Davison <ridaviso@amazon.com >
Co-authored-by: Rui Chen <rui@chenrui.dev >
2024-11-11 15:14:02 -05:00
98daca21d1
feat: add support for release assets with multiple spaces within the name ( #518 )
...
* extracted the asset name alignment to utils, added unit tests
* fixed formatting issues
2024-11-11 15:12:02 -05:00
cd8b57e572
remove unused imports ( #521 )
2024-10-15 14:50:29 -04:00
380635c4ad
chore(deps): bump @actions/github from 5.1.1 to 6.0.0 ( #470 )
...
* Bump @actions/github from 5.1.1 to 6.0.0
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github ) from 5.1.1 to 6.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github )
---
updated-dependencies:
- dependency-name: "@actions/github"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* update make_latest type
Signed-off-by: Rui Chen <rui@chenrui.dev >
* run dist update
Signed-off-by: Rui Chen <rui@chenrui.dev >
* run fmt change
Signed-off-by: Rui Chen <rui@chenrui.dev >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rui Chen <rui@chenrui.dev >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev >
2024-07-18 17:37:44 -04:00
25849b1326
chore(deps): bump prettier from 2.8.0 to 3.3.3 ( #480 )
...
* Bump prettier from 2.8.0 to 3.3.3
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.0 to 3.3.3.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.0...3.3.3 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* run fmt
Signed-off-by: Rui Chen <rui@chenrui.dev >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Rui Chen <rui@chenrui.dev >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev >
2024-07-18 16:05:39 -04:00
fb2d03176f
Fix missing update release body ( #365 )
...
* Update json5 deps
* Remove quote around env var `GITHUB_TOKEN`
* Factorize search by draft & tag
* Correct `_release` undefined when creating a new release
* Cleanup package-lock
2024-07-17 14:14:48 -04:00
0a76e4214a
Fix: error handling ( #449 )
...
- refactored the big `if/else` to exit early
- added error handling for different errors while creating a release
2024-05-07 09:21:14 -04:00
3989e4b325
document impl detail
2024-05-06 09:44:36 -04:00
40bf9ec7aa
fmt and build
2024-05-06 09:36:20 -04:00
998623f0c3
fix: support space in file name ( #446 )
...
* support space in file name
* Update github.ts
2024-05-06 09:35:11 -04:00
0979303f02
Fix failure ( #447 )
...
* Fix(temp): console.log
* broken dist
2024-05-06 09:27:30 -04:00
6ffed59e55
followup to #417 ( #425 )
...
* followup to #417
* update changelog
2024-03-12 12:22:52 -04:00
0e39c679e8
make pattern error opt in ( #417 )
...
* make pattern error opt in
* changelog link
2024-03-10 00:56:17 -05:00
9f5c4d39bc
update changelog
2024-03-08 16:30:09 -05:00
0bea76b227
Add support for make_latest property ( #304 )
...
* Add make_latest, remove dubious dist asset
* Apparently make_latest is a string.
* Keep default behaviour the same by defaulting to true for make_latest.
* Update config tests and README
* Rebuild the code.
* Revert change removing commented code.
* Change default behaviour to undefined for make_latest
* Update input documentation.
* Rebuild for code changes
---------
Co-authored-by: Doug Tangren <d.tangren@gmail.com >
2024-03-08 16:28:39 -05:00
5743e06024
update changelog
2024-03-08 16:13:09 -05:00
fe71fd3b91
Don't swallow errors ( #384 )
...
* Change 'pattern does not match any files' warning to fatal
Fixes #383
* Raise a fatal error if the config file is not valid
Related to #383
2024-03-08 16:10:05 -05:00
1468521d63
Dont use node-fetch ( #386 )
...
* manually adopt and apply patch from https://github.com/softprops/action-gh-release/issues/206#issuecomment-1325087743
* rebuild
---------
Co-authored-by: Doug Tangren <d.tangren@gmail.com >
2024-03-08 15:55:14 -05:00
e985949726
Do not raise misleading warning ( #389 )
...
When the input `input_files` is not defined, the
`config.input_files` will default to an empty array, which always
evaluate to true - that was triggering a warning like "hey man,
the value you inputted on `input_files` didn't yield any files",
which is logically wrong if `input_files` isn't explicitly defined.
2024-03-08 15:47:54 -05:00
0bd7e8b279
Update all dependencies + dependabot.yml configuration + node16 ( #275 )
...
* Create dependabot.yml
* Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update to node16
* Bump @types/node from 12.12.24 to 18.11.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 12.12.24 to 18.11.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump glob and @types/glob
Bumps [glob](https://github.com/isaacs/node-glob ) and [@types/glob](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/glob ). These dependencies needed to be updated together.
Updates `glob` from 7.1.6 to 8.0.3
- [Release notes](https://github.com/isaacs/node-glob/releases )
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/node-glob/compare/v7.1.6...v8.0.3 )
Updates `@types/glob` from 7.1.1 to 8.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/glob )
---
updated-dependencies:
- dependency-name: glob
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: "@types/glob"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump @actions/github from 5.0.0 to 5.1.1
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github ) from 5.0.0 to 5.1.1.
- [Release notes](https://github.com/actions/toolkit/releases )
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github )
---
updated-dependencies:
- dependency-name: "@actions/github"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ts-jest from 24.2.0 to 24.3.0
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest ) from 24.2.0 to 24.3.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases )
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v24.2.0...v24.3.0 )
---
updated-dependencies:
- dependency-name: ts-jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump prettier from 1.19.1 to 2.7.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.19.1 to 2.7.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.7.1 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump @octokit/plugin-retry from 3.0.9 to 4.0.3
Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js ) from 3.0.9 to 4.0.3.
- [Release notes](https://github.com/octokit/plugin-retry.js/releases )
- [Commits](https://github.com/octokit/plugin-retry.js/compare/v3.0.9...v4.0.3 )
---
updated-dependencies:
- dependency-name: "@octokit/plugin-retry"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Resolve conflicts
* Resolve conflicts
* Resolve conflicts
* Bump mime and @types/mime
Bumps [mime](https://github.com/broofa/mime ) and [@types/mime](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mime ). These dependencies needed to be updated together.
Updates `mime` from 2.4.4 to 3.0.0
- [Release notes](https://github.com/broofa/mime/releases )
- [Changelog](https://github.com/broofa/mime/blob/main/CHANGELOG.md )
- [Commits](https://github.com/broofa/mime/compare/v2.4.4...v3.0.0 )
Updates `@types/mime` from 2.0.1 to 3.0.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mime )
---
updated-dependencies:
- dependency-name: mime
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: "@types/mime"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump @octokit/plugin-throttling from 3.7.0 to 4.3.2
Bumps [@octokit/plugin-throttling](https://github.com/octokit/plugin-throttling.js ) from 3.7.0 to 4.3.2.
- [Release notes](https://github.com/octokit/plugin-throttling.js/releases )
- [Commits](https://github.com/octokit/plugin-throttling.js/compare/v3.7.0...v4.3.2 )
---
updated-dependencies:
- dependency-name: "@octokit/plugin-throttling"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump @zeit/ncc from 0.21.1 to 0.22.3
Bumps [@zeit/ncc](https://github.com/zeit/ncc ) from 0.21.1 to 0.22.3.
- [Release notes](https://github.com/zeit/ncc/releases )
- [Commits](https://github.com/zeit/ncc/compare/0.21.1...0.22.3 )
---
updated-dependencies:
- dependency-name: "@zeit/ncc"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update dependabot.yml
* Update dependabot.yml
* Regenerate package-lock.json and dist folder
* Update
* Bump typescript from 3.9.10 to 4.8.4
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 3.9.10 to 4.8.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.10...v4.8.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Resolve conflicts
* Bump jest-circus from 24.9.0 to 29.2.2
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus ) from 24.9.0 to 29.2.2.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.2.2/packages/jest-circus )
---
updated-dependencies:
- dependency-name: jest-circus
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Resolve conflicts
* Resolve conflicts
* Resolve conflicts
* Resolve conflicts
* Bump @types/jest from 24.9.1 to 29.2.2
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 24.9.1 to 29.2.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: "@types/jest"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update main.yml
* Bump jest-circus from 29.3.0 to 29.3.1
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus ) from 29.3.0 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest-circus )
---
updated-dependencies:
- dependency-name: jest-circus
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump jest from 29.3.0 to 29.3.1
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest ) from 29.3.0 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 01:50:24 -05:00
fe9a9bd329
add append_body option ( #199 )
2022-01-22 11:40:31 -05:00
58fa4b7a88
Add assets
action output ( #185 )
2021-11-25 18:02:50 -05:00
b260a9f8a6
Follow symbolic links ( #186 )
2021-11-24 12:00:17 -05:00
0465cdad11
Support auto generating release notes ( #179 )
2021-11-07 17:06:35 -05:00
69a9b03fd9
Fix typo in message ( #168 )
2021-10-25 20:57:46 -04:00
a3f0173fb3
pick one body ( #145 )
2021-09-10 23:07:54 -04:00
730b76a669
make sure values not provided by users resolve to undefined ( #144 )
2021-08-09 23:57:43 -04:00
6ecde844e8
better error on release create failure ( #143 )
2021-08-09 09:26:48 -04:00
8b7a7c0162
stringify errors object
2021-08-08 12:12:34 -04:00
6c87482fb9
fix upload err fmt
2021-08-08 12:10:40 -04:00
2861dc8673
support linking to discussions ( #136 )
...
* support linking to discussions
* fmt
* wire param
2021-08-08 02:07:02 -04:00
003621c2ca
address asset upload warning ( #134 )
...
* bump version
* address asset upload warning
* refactor to new octokit api, work around release asset upload api
* format upload url
* unminify to debug
* try alt constructor
* utilize formatted upload url
* authorize upload
* pass token explicitly
* address conflicting uploads
* remove debugging artifacts
2021-08-08 00:28:01 -04:00
8779b820d9
backwards compat for GITHUB_TOKEN from env ( #133 )
...
* backwards compat for GITHUB_TOKEN from env
* update changelog
2021-07-30 18:41:53 -04:00
d2a05f5e5a
fix: trimming tag_name to avoid error 422 when creating release ( #130 )
2021-07-30 09:09:00 -04:00
fdb5f68261
fmt
2021-07-25 20:14:18 -04:00
350afcd40d
Update github.ts ( #111 )
2021-07-25 20:04:10 -04:00
51ef4d3b15
first promise rejection propagates to outer catch
2021-07-25 19:54:22 -04:00
e314c6fe22
allow creating draft releases without a tag ( #95 )
...
Co-authored-by: Doug Tangren <d.tangren@gmail.com >
2021-07-25 19:53:57 -04:00
9f3b580ccc
lint fix and build
2021-07-25 19:53:56 -04:00
59b9126341
Retain original release info if the keys are not set ( #109 )
2021-07-25 19:53:56 -04:00
04c14f526b
Update github.ts ( #111 )
2021-07-25 19:53:56 -04:00
2934fce629
Support custom target_commitish value ( #76 )
...
* Make target_commitish configurable
* Store compiled action for testing
* Add target_commitish to metadata
* Allow override of target_commitish for updating
* Print commit usage
* Improve message for commit usage
* Update draft releases too
* Revert "Update draft releases too"
This reverts commit ff30f8edb18fa851785a2d361b03c9713f5ac17d.
* Integrate latest changes from upstream.
2021-07-25 19:53:53 -04:00
674bcd2d67
Add release id to outputs ( #60 )
...
* Add release ID to outputs
* Update README
2021-07-25 19:51:58 -04:00
05d11c9fe8
Merge remote-tracking branch 'upstream/master' into default-token
2021-03-21 10:14:08 +03:00
1f8f474abe
Add upload_url as action output ( #75 )
...
* Add upload_url as action output
* Update README
2021-03-21 01:59:32 -04:00
dac15d39e4
fix: Get the same behavior described in Docs( #71 ) ( #85 )
...
Now trying read body path first then falling back on body
2021-03-21 01:52:16 -04:00