Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
actions
/
delete-package-versions
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
000223e
.github
.licenses
__tests__
dist
src
.eslintignore
.eslintrc.json
.gitattributes
.gitignore
.licensed.yml
.prettierignore
.prettierrc.json
CODEOWNERS
LICENSE
README.md
action.yml
jest.config.js
package-lock.json
package.json
tsconfig.json
Breadcrumbs
delete-package-versions
/
action.yml
Blame
Blame
Latest commit
History
History
75 lines (61 loc) · 2.11 KB
Breadcrumbs
delete-package-versions
/
action.yml
Top
File metadata and controls
Code
Blame
75 lines (61 loc) · 2.11 KB
Raw
name: Delete Package Versions description: Deletes package versions inputs: package-version-ids: description: Comma separated string of package version ids to delete. required: false owner: description: > Owner of the repo containing the package version to delete. Defaults to the owner of the repo running the action. required: false repo: description: > Repo containing the package version to delete. Defaults to the repo running the action. required: false package-name: description: > Name of the package containing the version to delete. Required if dynamically deleting oldest versions. required: false num-old-versions-to-delete: description: > Number of versions to delete starting with the oldest version. Defaults to 1. required: false default: "1" min-versions-to-keep: description: > Number of versions to keep starting with the latest version By default keeps no version. To delete all versions set this as 0. required: false default: "-1" ignore-versions: description: > Regex pattern for package versions to ignore. Defaults to delete all versions. required: false default: "^$" delete-only-pre-release-versions: description: > Deletes only pre-release versions. The number of pre-release versions to keep can be specified by min-versions-to-keep. When this is set num-old-versions-to-delete and ignore-versions will not be taken into account. By default this is set to false required: false default: "false" token: description: > Token with the necessary scopes to delete package versions. If num-old-versions-to-delete is used the token also needs the read packages scope. Defaults to github.token scoped to the repo running the action. To delete package versions of a package outside the repo the action is running in use a Personal Access Token stored as a secret. required: false default: ${{ github.token }} runs: using: node12 main: dist/index.js branding: icon: package color: blue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
You can’t perform that action at this time.