File tree Expand file tree Collapse file tree 4 files changed +33
-3
lines changed
Expand file tree Collapse file tree 4 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Delete 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 : Delete Package Version
27+ run : |
28+ npm unpublish ${{ github.event.inputs.version }}
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3434 echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
3535 cd packages/${{ github.event.inputs.packagePath }}
3636 npm install --legacy-peer-deps
37- npm version patch
37+ npm version ${{ github.event.inputs.versionType }}
3838 npm run build
3939
4040 echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
Original file line number Diff line number Diff line change 11{
22 "name" : " @alilc/lowcode-plugin-resource-tabs" ,
3- "version" : " 1 .0.3 " ,
3+ "version" : " 2 .0.0 " ,
44 "description" : " alibaba lowcode resource tabs plugin" ,
55 "files" : [
66 " es" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @alilc/lowcode-plugin-view-manager-pane" ,
3- "version" : " 1.0.7 " ,
3+ "version" : " 1.0.8 " ,
44 "description" : " alibaba lowcode editor undo redo plugin" ,
55 "files" : [
66 " es" ,
You can’t perform that action at this time.
0 commit comments