-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Problem Statement
Currently we do not offer a GitHub action to deprecate packages.
Proposed Solution
Implement a GitHub action to deprecate apax packages
Deprecate a package or package version.
━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ apax deprecate [message]
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-r,--registry #0 The URL to access the registry. The deprecate package must exists in this registry and you have access right to this registry.
-u,--undeprecate Un-deprecate the given package instead of deprecating it.
━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
deprecate a single version
$ $ apax deprecate mypackage@1.0.0 -r http://myregistry "mypackage 1.0.0 is deprecated, please switch to 2.0.0"
deprecate version range
$ $ apax deprecate mypackage@<2.0.0 -r http://myregistry "mypackage <2.0.0 is deprecated, please switch to 2.0.0"
deprecate all versions
$ $ apax deprecate mypackage -r http://myregistry "mypackage is deprecated, please switch to mynewpackage"
un-deprecate a single package
$ $ apax deprecate mypackage@1.0.0 -r http://myregistry --undeprecate
un-deprecate version range
$ $ apax deprecate mypackage@<2.0.0 -r http://myregistry --undeprecate
un-deprecate all versions
$ $ apax deprecate mypackage -r http://myregistry --undeprecate
Alternatives Considered
No response
Additional Context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct