Skip to content

Commit 9e95c48

Browse files
nikitabelonogovfarioasbmartel
authored
ci: PLT-722: Remove frontend dist (#7446)
Co-authored-by: Sergey Zhuk <[email protected]> Co-authored-by: Brandon Martel <[email protected]>
1 parent 2ba6fb4 commit 9e95c48

30 files changed

+10
-7062
lines changed

.github/workflows/cicd_pipeline.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- '.github/workflows/test_migrations.yml'
5757
frontend:
5858
- 'web/**'
59-
- '.github/workflows/frontend-build.yml'
6059
- '.github/workflows/tests-yarn-unit.yml'
6160
- '.github/workflows/tests-yarn-integration.yml'
6261
- '.github/workflows/tests-yarn-e2e.yml'
@@ -136,43 +135,6 @@ jobs:
136135
with:
137136
head_sha: ${{ github.event.pull_request.head.sha || github.event.after }}
138137

139-
build-frontend-docs:
140-
name: "Build"
141-
needs:
142-
- changed_files
143-
if: |
144-
github.event_name == 'pull_request' &&
145-
github.event.pull_request.head.repo.fork == false &&
146-
needs.changed_files.outputs.frontend == 'true' &&
147-
!startsWith(needs.changed_files.outputs.commit-message, 'ci: Build frontend')
148-
permissions:
149-
contents: write
150-
uses: ./.github/workflows/frontend-build.yml
151-
with:
152-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
153-
build_static: false
154-
generate_version_files: false
155-
generate_doc_tags_files: true
156-
secrets: inherit
157-
158-
build-frontend-static:
159-
name: "Build"
160-
needs:
161-
- changed_files
162-
if: |
163-
github.event_name == 'push' &&
164-
needs.changed_files.outputs.frontend == 'true' &&
165-
!startsWith(needs.changed_files.outputs.commit-message, 'ci: Build frontend')
166-
permissions:
167-
contents: write
168-
uses: ./.github/workflows/frontend-build.yml
169-
with:
170-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
171-
build_static: true
172-
generate_version_files: true
173-
generate_doc_tags_files: true
174-
secrets: inherit
175-
176138
build-docker:
177139
name: "Build"
178140
needs:

.github/workflows/frontend-build.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/tests-yarn-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Run LSF server
5151
id: run-lsf-server
52-
timeout-minutes: 1
52+
timeout-minutes: 2
5353
working-directory: ${{ env.FRONTEND_MONOREPO_DIR }}
5454
env:
5555
NODE_ENV: production

.github/workflows/tests-yarn-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Run server
4141
id: run-server
42-
timeout-minutes: 1
42+
timeout-minutes: 2
4343
working-directory: ${{ env.FRONTEND_MONOREPO_DIR }}
4444
run: |
4545
set -xeuo pipefail

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,3 @@ repos:
2525
language: node
2626
types: [ scss ]
2727
files: ^.*\.scss$
28-
- repo: local
29-
hooks:
30-
- id: unstage-frontend-static
31-
name: Unstage Frontend Static Before Commit
32-
entry: git reset HEAD -- 'web/dist/*'
33-
language: system
34-
pass_filenames: false
35-
files: ^web/dist/.*
36-
verbose: true
37-
stages:
38-
- pre-commit
39-
- manual

web/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,5 @@ libs/datamanager/src/examples
121121
libs/datamanager/e2e/output
122122

123123
libs/datamanager/.cache
124+
125+
dist

web/dist/apps/labelstudio/220.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

web/dist/apps/labelstudio/220.js.LICENSE.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

web/dist/apps/labelstudio/220.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)