feat(node-versions): raised the minimum required node version to v18 (#2620)
This commit is contained in:
		
							parent
							
								
									cf6befa2e8
								
							
						
					
					
						commit
						8a0d8be51f
					
				
							
								
								
									
										15
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,9 +17,8 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: |         node-version: | ||||||
|           - 14.17 |           - 18.0.0 | ||||||
|           - 16.0.0 |           - 19 | ||||||
|           - 17 |  | ||||||
| 
 | 
 | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| 
 | 
 | ||||||
| @ -32,7 +31,9 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           node-version: ${{ matrix.node-version }} |           node-version: ${{ matrix.node-version }} | ||||||
|           cache: npm |           cache: npm | ||||||
|       - run: npm ci |       - run: npm clean-install | ||||||
|  |       - name: Ensure dependencies are compatible with the version of node | ||||||
|  |         run: npx ls-engines | ||||||
|       - run: npm run test:ci |       - run: npm run test:ci | ||||||
| 
 | 
 | ||||||
|   # separate job to set as required in branch protection, |   # separate job to set as required in branch protection, | ||||||
| @ -44,9 +45,7 @@ jobs: | |||||||
|       - uses: actions/checkout@v3 |       - uses: actions/checkout@v3 | ||||||
|       - uses: actions/setup-node@v3 |       - uses: actions/setup-node@v3 | ||||||
|         with: |         with: | ||||||
|           node-version: 16 |           node-version: lts/* | ||||||
|           cache: npm |           cache: npm | ||||||
|       - run: npm ci |       - run: npm clean-install | ||||||
|       - name: Ensure dependencies are compatible with the version of node |  | ||||||
|         run: npx ls-engines@0.4 |  | ||||||
|       - run: npm run lint |       - run: npm run lint | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -62,7 +62,7 @@ | |||||||
|         "xo": "0.32.1" |         "xo": "0.32.1" | ||||||
|       }, |       }, | ||||||
|       "engines": { |       "engines": { | ||||||
|         "node": ">=16 || ^14.17" |         "node": ">=18" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/@babel/code-frame": { |     "node_modules/@babel/code-frame": { | ||||||
|  | |||||||
| @ -79,7 +79,7 @@ | |||||||
|     "semantic-release": "20.0.0-beta.1" |     "semantic-release": "20.0.0-beta.1" | ||||||
|   }, |   }, | ||||||
|   "engines": { |   "engines": { | ||||||
|     "node": ">=16 || ^14.17" |     "node": ">=18" | ||||||
|   }, |   }, | ||||||
|   "files": [ |   "files": [ | ||||||
|     "bin", |     "bin", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user