mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	Add support for volta.extends (#921)
				
					
				
			* Add support for `volta.extends` * Code review
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b39b52d121
						
					
				
				
					commit
					d86ebcd40b
				
			
							
								
								
									
										20
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							| @@ -162,9 +162,6 @@ jobs: | ||||
|           [.nvmrc, .tool-versions, .tool-versions-node, package.json] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|       - name: Remove volta from package.json | ||||
|         shell: bash | ||||
|         run: cat <<< "$(jq 'del(.volta)' ./__tests__/data/package.json)" > ./__tests__/data/package.json | ||||
|       - name: Setup node from node version file | ||||
|         uses: ./ | ||||
|         with: | ||||
| @@ -183,7 +180,22 @@ jobs: | ||||
|       - name: Setup node from node version file | ||||
|         uses: ./ | ||||
|         with: | ||||
|           node-version-file: '__tests__/data/package.json' | ||||
|           node-version-file: '__tests__/data/package-volta.json' | ||||
|       - name: Verify node | ||||
|         run: __tests__/verify-node.sh 16 | ||||
|  | ||||
|   version-file-volta-extends: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|       - name: Setup node from node version file | ||||
|         uses: ./ | ||||
|         with: | ||||
|           node-version-file: '__tests__/data/package-volta-extends.json' | ||||
|       - name: Verify node | ||||
|         run: __tests__/verify-node.sh 16 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user