File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3131  publish :
3232    needs : check 
3333    runs-on : ubuntu-latest 
34+     environment : publish 
35+     permissions :
36+       id-token : write 
3437    if : ${{ github.event.ref == 'refs/heads/develop' || github.event.ref == 'refs/heads/release' }} 
3538    steps :
3639    - name : Check out source code 
@@ -40,13 +43,14 @@ jobs:
4043    - name : Set up node 
4144      uses : actions/setup-node@v4 
4245      with :
46+         node-version : ' 20' 
4347        registry-url : ' https://registry.npmjs.org' 
48+     - name : Update npm 
49+       run : npm install -g npm@latest 
4450    - name : Prepare metadata 
4551      run : node prepare.mjs 
4652    - name : Publish package to NPM 
47-       run : npm publish --access public 
48-       env :
49-         NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} 
53+       run : npm publish --tag latest 
5054  release :
5155    needs : check 
5256    runs-on : ubuntu-latest 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments