File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Publish Package to npmjs
22
33on :
44  workflow_dispatch :
5+     inputs :
6+       workspace_name :
7+         description : ' Which workspace you want to deploy (cli, detector)' 
8+         required : true 
59
610env :
711  NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} 
2630        node-version : ${{ env.NODE_VERSION }} 
2731        registry-url : ' https://registry.npmjs.org' 
2832
29-     - name : Publish to npm 
33+     - name : Publish CLI to npm 
34+       if : ${{ github.event.inputs.workspace_name }} == "cli" 
3035      run : | 
3136        npm i --workspaces 
3237        npm run compile --workspaces 
33-         npm publish --workspace=detector --provenance --access public 
3438        npm publish --workspace=cli --provenance --access public 
39+ 
40+     - name : Publish Detector to npm 
41+       if : ${{ github.event.inputs.workspace_name }} == "detector" 
42+       run : | 
43+         npm i --workspaces 
44+         npm run compile --workspaces 
45+         npm publish --workspace=detector --provenance --access public 
46+ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments