File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ name: Build and Publish
22
33on :
44  workflow_dispatch :
5-     branches : [main] 
6-     inputs :
7-       version :
8-         description : ' Version to bump `package.json` to' 
9-         required : true 
5+     branches :
6+       - main 
7+     paths-ignore :
8+       - ' **/*.md' 
9+       - ' **/*.gitignore' 
10+       - ' **/*.gitattributes' 
1011
1112jobs :
1213  build :
3031      env :
3132        CI : true 
3233
34+     - name : Extract Package Version 
35+       id : package_version 
36+ 37+ 
3338    - name : Publish 
3439      run : npm run deploy 
3540      env :
@@ -38,15 +43,15 @@ jobs:
3843    - name : Upload artifact 
3944      uses : actions/upload-artifact@v3 
4045      with :
41-         name : " timheuer-resx-editor " 
46+         name : ${{ github.event.repository.name}}.vsix 
4247        path : " **/*.vsix" 
4348
4449    - name : Tag and Release 
4550      id : tag_release 
4651      uses : softprops/action-gh-release@v1 
4752      with :
48-         body : Release ${{ github.event.inputs .version }} 
49-         tag_name : ${{ github.event.inputs .version }} 
53+         body : Release ${{ steps.package_version.outputs .version }} 
54+         tag_name : ${{ steps.package_version.outputs .version }} 
5055        generate_release_notes : true 
5156        files : | 
5257          **/*.vsix 
Original file line number Diff line number Diff line change @@ -8,3 +8,6 @@ vsc-extension-quickstart.md
88** /.eslintrc.json 
99** /* .map 
1010** /* .ts 
11+ esbuild.js 
12+ gulp.js 
13+ node_modules /** 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments