File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : deprecate Package Version
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version to be deleted package@version'
8+ required : true
9+
10+ jobs :
11+ delete-package-version :
12+ runs-on : ubuntu-latest
13+ if : >-
14+ github.ref == 'refs/heads/main' &&
15+ (github.actor == 'JackLian' || github.actor == 'liujuping')
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v2
20+
21+ - name : Set up Node.js
22+ uses : actions/setup-node@v2
23+ with :
24+ node-version : ' 14'
25+
26+ - name : deprecate Package Version
27+ run : |
28+ npm deprecate ${{ github.event.inputs.version }} "This version is deprecated. Please consider upgrading to a newer version."
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments