mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 04:31:55 +08:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			ethomson/u
			...
			ethomson/u
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3fa75190be | |||
| 6ecfd2dcb2 | |||
| f499b0c1ab | 
@ -4,11 +4,10 @@
 | 
				
			|||||||
  <a href="https://github.com/actions/setup-node"><img alt="GitHub Actions status" src="https://github.com/actions/setup-node/workflows/Main%20workflow/badge.svg"></a>
 | 
					  <a href="https://github.com/actions/setup-node"><img alt="GitHub Actions status" src="https://github.com/actions/setup-node/workflows/Main%20workflow/badge.svg"></a>
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This action sets up a node environment for use in actions, including npm and yarn.  It:
 | 
					This action sets by node environment for use in actions by:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- sets up the specified version of node (downloading it if it's not already available)
 | 
					- optionally downloading and caching a version of node - npm by version spec and add to PATH
 | 
				
			||||||
- adds node, npm and yarn to the PATH
 | 
					- registering problem matchers for error output 
 | 
				
			||||||
- registers problem matchers for error output 
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Usage
 | 
					# Usage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -97,7 +96,7 @@ steps:
 | 
				
			|||||||
- run: npm install --ignore-scripts
 | 
					- run: npm install --ignore-scripts
 | 
				
			||||||
  env:
 | 
					  env:
 | 
				
			||||||
    NODE_AUTH_TOKEN: ${{ secrets.NPM_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 scripts for us.
 | 
				
			||||||
- run: npm rebuild && npm run prepare --if-present
 | 
					- run: npm rebuild && npm run prepare --if-present
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
name: 'Setup Node.js environment'
 | 
					name: 'Setup Node.js'
 | 
				
			||||||
description: 'Setup a Node.js environment and add it to the PATH, additionally providing proxy support'
 | 
					description: 'Set up a specific version of Node.js and add the command-line tools to the PATH'
 | 
				
			||||||
author: 'GitHub'
 | 
					author: 'GitHub'
 | 
				
			||||||
inputs:
 | 
					inputs:
 | 
				
			||||||
  always-auth:
 | 
					  always-auth:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user