mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	* default to auto-caching only for npm package manager and documentation update * refactor: enhance package manager detection for auto-caching * add devEngines.packageManager detection logic for npm auto-caching * chore: bump version to 6.0.0 and update documentation * docs: update README and action.yml for npm caching logic clarification * chore: update Node.js version in workflows * chore: update Node.js versions in versions.yml * chore: update rc Node.js version in versions.yml * chore: switch macos-13 runner to macos-latest-large in workflow * docs: update README and advanced usage documentation
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: proxy
 | |
| 
 | |
| on:
 | |
|   pull_request:
 | |
|     paths-ignore:
 | |
|       - '**.md'
 | |
|   push:
 | |
|     branches:
 | |
|       - main
 | |
|       - releases/*
 | |
|     paths-ignore:
 | |
|       - '**.md'
 | |
| 
 | |
| jobs:
 | |
|   test-proxy:
 | |
|     runs-on: ubuntu-latest
 | |
|     container:
 | |
|       image: ubuntu:latest
 | |
|       options: --dns 127.0.0.1
 | |
|     services:
 | |
|       squid-proxy:
 | |
|         image: ubuntu/squid:latest
 | |
|         ports:
 | |
|           - 3128:3128
 | |
|     env:
 | |
|       https_proxy: http://squid-proxy:3128
 | |
|     steps:
 | |
|       - uses: actions/checkout@v5
 | |
|       - name: Clear tool cache
 | |
|         run: rm -rf $RUNNER_TOOL_CACHE/*
 | |
|       - name: Setup node 24
 | |
|         uses: ./
 | |
|         with:
 | |
|           node-version: 24.x
 | |
|       - name: Verify node and npm
 | |
|         run: __tests__/verify-node.sh 24
 | |
| 
 | |
|   test-bypass-proxy:
 | |
|     runs-on: ubuntu-latest
 | |
|     env:
 | |
|       https_proxy: http://no-such-proxy:3128
 | |
|       no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
 | |
|     steps:
 | |
|       - uses: actions/checkout@v5
 | |
|       - name: Clear tool cache
 | |
|         run: rm -rf $RUNNER_TOOL_CACHE/*
 | |
|       - name: Setup node 24
 | |
|         uses: ./
 | |
|         with:
 | |
|           node-version: 24
 | |
|       - name: Verify node and npm
 | |
|         run: __tests__/verify-node.sh 24
 |