mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			590 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			590 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
 | |
|         cache: npm
 | |
|         cache-dependency-path: sources/package-lock.json
 | |
|     - name: Build distribution
 | |
|       shell: bash
 | |
|       run: |
 | |
|         npm -v
 | |
|         node -v
 | |
|         npm install
 | |
|         npm run build
 | |
|       working-directory: sources
 | |
|     - name: Upload distribution
 | |
|       uses: actions/upload-artifact@v4
 | |
|       with:
 | |
|         name: dist
 | |
|         path: dist/
 | 
