mirror of
				https://hub.gitmirror.com/https://github.com/gradle/gradle-build-action
				synced 2025-10-31 10:00:07 +08:00 
			
		
		
		
	 75b3db10df
			
		
	
	
		75b3db10df
		
			
		
	
	
	
	
		
			
			- Use setup-node to control Node version used to build - Use Node20 compatible actions in custom actions
		
			
				
	
	
		
			21 lines
		
	
	
		
			481 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			481 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: 'Build and upload distribution'
 | |
| # Builds the action distribution an uploads as an artifact for later download
 | |
| runs:
 | |
|   using: "composite"
 | |
|   steps: 
 | |
|     - uses: actions/setup-node@v4
 | |
|       with:
 | |
|         node-version: 20
 | |
|     - name: Build distribution
 | |
|       shell: bash
 | |
|       run: |
 | |
|         npm -v
 | |
|         node -v
 | |
|         npm install
 | |
|         npm run build
 | |
|     - name: Upload distribution
 | |
|       uses: actions/upload-artifact@v4
 | |
|       with:
 | |
|         name: dist
 | |
|         path: dist/
 |