mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	Upgrade action to use node24 (#1325)
* Change Node.js version to 24 Update Node.js version from 20 to 24 in action.yml * update and vulnerability fixes * update node version check * update licences * node version check update * update version for test * node version * update node version to 24.0.0 in tool-versions and package-volta.json * node 24 * update to 24 * update to specify engines * check failures fix * update package-lock.json * licensed update * check failure fix * documentation update --------- Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
This commit is contained in:
		
							
								
								
									
										20
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
									
									
									
									
								
							| @@ -18,7 +18,7 @@ See [action.yml](action.yml) | ||||
|  | ||||
| <!-- start usage --> | ||||
| ```yaml | ||||
| - uses: actions/setup-node@v4 | ||||
| - uses: actions/setup-node@v5 | ||||
|   with: | ||||
|     # Version Spec of the version to use in SemVer notation. | ||||
|     # It also admits such aliases as lts/*, latest, nightly and canary builds | ||||
| @@ -98,8 +98,8 @@ See [action.yml](action.yml) | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v4 | ||||
| - uses: actions/setup-node@v4 | ||||
| - uses: actions/checkout@v5 | ||||
| - uses: actions/setup-node@v5 | ||||
|   with: | ||||
|     node-version: 18 | ||||
| - run: npm ci | ||||
| @@ -159,8 +159,8 @@ See the examples of using cache for `yarn`/`pnpm` and `cache-dependency-path` in | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v4 | ||||
| - uses: actions/setup-node@v4 | ||||
| - uses: actions/checkout@v5 | ||||
| - uses: actions/setup-node@v5 | ||||
|   with: | ||||
|     node-version: 20 | ||||
|     cache: 'npm' | ||||
| @@ -172,8 +172,8 @@ steps: | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v4 | ||||
| - uses: actions/setup-node@v4 | ||||
| - uses: actions/checkout@v5 | ||||
| - uses: actions/setup-node@v5 | ||||
|   with: | ||||
|     node-version: 20 | ||||
|     cache: 'npm' | ||||
| @@ -193,9 +193,9 @@ jobs: | ||||
|         node: [ 14, 16, 18 ] | ||||
|     name: Node ${{ matrix.node }} sample | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|       - uses: actions/checkout@v5 | ||||
|       - name: Setup node | ||||
|         uses: actions/setup-node@v4 | ||||
|         uses: actions/setup-node@v5 | ||||
|         with: | ||||
|           node-version: ${{ matrix.node }} | ||||
|       - run: npm ci | ||||
| @@ -209,7 +209,7 @@ jobs: | ||||
| To get a higher rate limit, you can [generate a personal access token on github.com](https://github.com/settings/tokens/new) and pass it as the `token` input for the action: | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/setup-node@v4 | ||||
| uses: actions/setup-node@v5 | ||||
| with: | ||||
|   token: ${{ secrets.GH_DOTCOM_TOKEN }} | ||||
|   node-version: 20 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user