mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 06:43:35 +00:00 
			
		
		
		
	better understand why set env NODE_AUTH_TOKEN . and what used for
didn't see anywhere explain that, make use duplicate use another token finish publish work
This commit is contained in:
		
							parent
							
								
									05f0551dbd
								
							
						
					
					
						commit
						b96b15324f
					
				@ -134,7 +134,7 @@ jobs:
 | 
			
		||||
      - run: npm test
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Publish to npmjs and GPR with npm:
 | 
			
		||||
Publish to npmjs and GPR with npm, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com` :
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: actions/checkout@v2
 | 
			
		||||
@ -154,7 +154,7 @@ steps:
 | 
			
		||||
    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Publish to npmjs and GPR with yarn:
 | 
			
		||||
Publish to npmjs and GPR with yarn, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com`:
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: actions/checkout@v2
 | 
			
		||||
@ -174,7 +174,7 @@ steps:
 | 
			
		||||
    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Use private packages:
 | 
			
		||||
Use private packages, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com`:
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user