mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Fix example to use NPM_TOKEN instead of YARN_TOKEN. (#57)
This commit is contained in:
		
				
					committed by
					
						
						Danny McCormick
					
				
			
			
				
	
			
			
			
						parent
						
							ca2e28376a
						
					
				
				
					commit
					4fd9403fe5
				
			@@ -95,7 +95,7 @@ steps:
 | 
				
			|||||||
# script could steal NODE_AUTH_TOKEN.
 | 
					# script could steal NODE_AUTH_TOKEN.
 | 
				
			||||||
- run: npm install --ignore-scripts
 | 
					- run: npm install --ignore-scripts
 | 
				
			||||||
  env:
 | 
					  env:
 | 
				
			||||||
    NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
 | 
					    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
 | 
				
			||||||
# `npm rebuild` will run all those post-install scritps for us.
 | 
					# `npm rebuild` will run all those post-install scritps for us.
 | 
				
			||||||
- run: npm rebuild && npm run prepare --if-present
 | 
					- run: npm rebuild && npm run prepare --if-present
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user