mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Backporting fixes to old versions usually pushes the docker latest tag as well. We only want to do this if the version we're releasing is the latest
This commit is contained in:
		
							parent
							
								
									ca1a7000ef
								
							
						
					
					
						commit
						efd387a385
					
				
							
								
								
									
										6
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/docker_publish.yaml
									
									
									
									
										vendored
									
									
								
							| @ -12,6 +12,11 @@ on: | |||||||
|         description: "Which version to release" |         description: "Which version to release" | ||||||
|         type: 'string' |         type: 'string' | ||||||
|         required: true |         required: true | ||||||
|  |       is-latest-version: | ||||||
|  |         description: Is this the latest version? If latest we'll update the version docker | ||||||
|  |         required: true | ||||||
|  |         type: boolean | ||||||
|  |         default: true | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
| @ -39,6 +44,7 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           images: | |           images: | | ||||||
|             unleashorg/unleash-server |             unleashorg/unleash-server | ||||||
|  |           flavor: latest=${{ github.event.inputs.is-latest-version }} | ||||||
|           tags: | |           tags: | | ||||||
|             # only enabled for workflow dispatch except main (assume its a release): |             # only enabled for workflow dispatch except main (assume its a release): | ||||||
|             type=semver,pattern={{ version }},enable=${{ github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' }},value=${{ inputs.version }} |             type=semver,pattern={{ version }},enable=${{ github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' }},value=${{ inputs.version }} | ||||||
|  | |||||||
							
								
								
									
										13
									
								
								.github/workflows/publish-new-version.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/publish-new-version.yaml
									
									
									
									
										vendored
									
									
								
							| @ -6,7 +6,7 @@ concurrency: | |||||||
| 
 | 
 | ||||||
| permissions: | permissions: | ||||||
|   contents: write |   contents: write | ||||||
|   id-token: write   |   id-token: write | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| @ -18,8 +18,8 @@ on: | |||||||
|         required: true |         required: true | ||||||
|         type: boolean |         type: boolean | ||||||
|         default: true |         default: true | ||||||
|       update-version-function: |       is-latest-version: | ||||||
|         description: Should we update the version function to use this version? |         description: Is this the latest version? If latest we'll update the version function, docker and npm latest | ||||||
|         required: true |         required: true | ||||||
|         type: boolean |         type: boolean | ||||||
|         default: true |         default: true | ||||||
| @ -30,7 +30,7 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: [20.x] |         node-version: [ 20.x ] | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
| @ -118,7 +118,8 @@ jobs: | |||||||
|     secrets: inherit |     secrets: inherit | ||||||
|     with: |     with: | ||||||
|       version: ${{ github.event.inputs.version }} |       version: ${{ github.event.inputs.version }} | ||||||
|    |       is-latest-version: ${{ github.event.inputs.is-latest-version == 'true' }} | ||||||
|  | 
 | ||||||
|   publish-npm: |   publish-npm: | ||||||
|     needs: build |     needs: build | ||||||
|     uses: ./.github/workflows/release.yaml |     uses: ./.github/workflows/release.yaml | ||||||
| @ -134,7 +135,7 @@ jobs: | |||||||
| 
 | 
 | ||||||
|   update-version-checker: |   update-version-checker: | ||||||
|     needs: publish-docker |     needs: publish-docker | ||||||
|     if: ${{ github.event.inputs.update-version-function == 'true' }} |     if: ${{ github.event.inputs.is-latest-version == 'true' }} | ||||||
|     uses: ./.github/workflows/update_version_for_version_checker.yml |     uses: ./.github/workflows/update_version_for_version_checker.yml | ||||||
|     secrets: inherit |     secrets: inherit | ||||||
|     with: |     with: | ||||||
|  | |||||||
							
								
								
									
										24
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								package.json
									
									
									
									
									
								
							| @ -82,9 +82,7 @@ | |||||||
|     "testTimeout": 10000, |     "testTimeout": 10000, | ||||||
|     "globalSetup": "./scripts/jest-setup.js", |     "globalSetup": "./scripts/jest-setup.js", | ||||||
|     "transform": { |     "transform": { | ||||||
|       "^.+\\.tsx?$": [ |       "^.+\\.tsx?$": ["@swc/jest"] | ||||||
|         "@swc/jest" |  | ||||||
|       ] |  | ||||||
|     }, |     }, | ||||||
|     "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", |     "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||||||
|     "testPathIgnorePatterns": [ |     "testPathIgnorePatterns": [ | ||||||
| @ -93,13 +91,7 @@ | |||||||
|       "/frontend/", |       "/frontend/", | ||||||
|       "/website/" |       "/website/" | ||||||
|     ], |     ], | ||||||
|     "moduleFileExtensions": [ |     "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"], | ||||||
|       "ts", |  | ||||||
|       "tsx", |  | ||||||
|       "js", |  | ||||||
|       "jsx", |  | ||||||
|       "json" |  | ||||||
|     ], |  | ||||||
|     "coveragePathIgnorePatterns": [ |     "coveragePathIgnorePatterns": [ | ||||||
|       "/node_modules/", |       "/node_modules/", | ||||||
|       "/dist/", |       "/dist/", | ||||||
| @ -240,14 +232,8 @@ | |||||||
|     "tough-cookie": "4.1.4" |     "tough-cookie": "4.1.4" | ||||||
|   }, |   }, | ||||||
|   "lint-staged": { |   "lint-staged": { | ||||||
|     "*.{js,ts}": [ |     "*.{js,ts}": ["biome check --write --no-errors-on-unmatched"], | ||||||
|       "biome check --write --no-errors-on-unmatched" |     "*.{jsx,tsx}": ["biome check --write --no-errors-on-unmatched"], | ||||||
|     ], |     "*.json": ["biome format --write --no-errors-on-unmatched"] | ||||||
|     "*.{jsx,tsx}": [ |  | ||||||
|       "biome check --write --no-errors-on-unmatched" |  | ||||||
|     ], |  | ||||||
|     "*.json": [ |  | ||||||
|       "biome format --write --no-errors-on-unmatched" |  | ||||||
|     ] |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user