File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 11#  This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22#  For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33
4- name : Node.js Package 
5- 
4+ name : Publish Package to npmjs 
65on :
76  release :
8-     types : [created] 
9- 
7+     types : [published] 
108jobs :
119  publish-npm :
1210    runs-on : ubuntu-latest 
11+     permissions :
12+       contents : write 
13+       id-token : write 
1314    steps :
14-       - uses : actions/checkout@v3  
15-       - uses : actions/setup-node@v3  
15+       - uses : actions/checkout@v4  
16+       - uses : actions/setup-node@v4  
1617        with :
17-           node-version : 16 
18+           node-version : ' 20.x ' 
1819          registry-url : https://registry.npmjs.org/ 
19-       - run : npm publish 
20+       - run : npm publish --provenance --access public  
2021        env :
21-           NODE_AUTH_TOKEN : ${{secrets.npm_token }} 
22+           NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN }} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments