File tree Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,8 @@ name: Publish
33on :
44  release :
55    types : [created] 
6-   workflow_dispatch :
7-     inputs :
8-       version :
9-         description : ' Version to publish' 
10-         required : true 
116
127jobs :
13- 
148  publish-npm :
159    runs-on : ubuntu-latest 
1610    steps :
2418      - run : npm test 
2519      - run : npm version ${TAG_NAME} --git-tag-version=false 
2620        env :
27-           TAG_NAME : ${{ github.event.inputs.version || github.event. release.tag_name }} 
21+           TAG_NAME : ${{ github.event.release.tag_name }} 
2822      - run : npm whoami; npm --ignore-scripts publish 
2923        env :
3024         NODE_AUTH_TOKEN : ${{secrets.npm_token}} 
31- 
32-   publish-gpr :
33-     runs-on : ubuntu-latest 
34-     steps :
35-       - uses : actions/checkout@v2 
36-       - uses : actions/setup-node@v2 
37-         with :
38-           node-version : 14 
39-           registry-url : https://registry.npmjs.org/ 
40-       - run : npm ci 
41-       - run : npm run build --if-present 
42-       - run : npm test 
43-       - run : npm version ${TAG_NAME} --git-tag-version=false 
44-         env :
45-           TAG_NAME : ${{ github.event.inputs.version || github.event.release.tag_name }} 
46-       - uses : actions/setup-node@v2 
47-         with :
48-           node-version : 14 
49-           registry-url : https://npm.pkg.github.com/ 
50-       - run : npm --ignore-scripts publish 
51-         env :
52-           NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments