CI: Use short Node versions
https://github.com/actions/setup-node#supported-version-syntax documents only the short versions, without `.x`, so we shall use them. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
		
							parent
							
								
									b9a0cb6150
								
							
						
					
					
						commit
						0e9fc1f05d
					
				
							
								
								
									
										6
									
								
								.github/workflows/node.js.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/node.js.yml
									
									
									
									
										vendored
									
									
								
							| @ -30,7 +30,7 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: [12.x, 14.x, 16.x] |         node-version: [12, 14, 16] | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v2 |       - uses: actions/checkout@v2 | ||||||
|       - name: Use Node.js ${{ matrix.node-version }} |       - name: Use Node.js ${{ matrix.node-version }} | ||||||
| @ -45,7 +45,7 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: [12.x, 14.x, 16.x] |         node-version: [12, 14, 16] | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v2 |       - uses: actions/checkout@v2 | ||||||
|       - name: Use Node.js ${{ matrix.node-version }} |       - name: Use Node.js ${{ matrix.node-version }} | ||||||
| @ -56,7 +56,7 @@ jobs: | |||||||
|       - run: yarn --frozen-lockfile --prefer-offline |       - run: yarn --frozen-lockfile --prefer-offline | ||||||
|       - run: yarn run build |       - run: yarn run build | ||||||
|       - uses: actions/upload-artifact@v2 |       - uses: actions/upload-artifact@v2 | ||||||
|         if: github.ref == 'refs/heads/master' && matrix.node-version == '16.x' |         if: github.ref == 'refs/heads/master' && matrix.node-version == '16' | ||||||
|         with: |         with: | ||||||
|           name: Prebuild with Node.js ${{ matrix.node-version }} |           name: Prebuild with Node.js ${{ matrix.node-version }} | ||||||
|           path: | |           path: | | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user