File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ name: Release and Publish to the Marketplace and Open VSX
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ publish_openvsx :
7+ description : ' Publish to Open VSX'
8+ type : boolean
9+ required : true
10+ default : true
11+ publish_marketplace :
12+ description : ' Publish to Marketplace'
13+ type : boolean
14+ required : true
15+ default : true
16+ publish_npm :
17+ description : ' Publish Types to NPM'
18+ type : boolean
19+ required : true
20+ default : true
521
622 release :
723 types : [created]
@@ -34,23 +50,28 @@ jobs:
3450 npm install -g vsce ovsx
3551
3652 - name : Publish to Open VSX
53+ if : github.event_name == 'release' || inputs.publish_openvsx == true
3754 run : npx ovsx publish -p $OPENVSX_TOKEN
3855 env :
3956 OPENVSX_TOKEN : ${{ secrets.OPENVSX_TOKEN }}
4057
4158 - name : Publish to Marketplace
59+ if : github.event_name == 'release' || inputs.publish_marketplace == true
4260 run : vsce publish -p $PUBLISHER_TOKEN
4361 env :
4462 PUBLISHER_TOKEN : ${{ secrets.PUBLISHER_TOKEN }}
4563
4664 - name : Generate Types
65+ if : github.event_name == 'release' || inputs.publish_npm == true
4766 continue-on-error : true
4867 run : npm run types
4968
5069 - name : Cleanup Types
70+ if : github.event_name == 'release' || inputs.publish_npm == true
5171 run : cd types && npm run prepublish
5272
5373 - name : Publish Types to NPM
74+ if : github.event_name == 'release' || inputs.publish_npm == true
5475 run : cd types && npm publish --access public
5576 env :
5677 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments