Skip to content

Commit ba22e3b

Browse files
fix(admin): update admin build command in firebase workflows and package.json
1 parent a8b2f95 commit ba22e3b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/firebase-admin-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
echo "Checking commit: $commit"
3535
echo "Message: $message"
3636
37-
if echo "$message" | grep -E "^[^(]+\((admin|config)\):" > /dev/null; then
37+
if echo "$message" | grep -E "^[^(]+\((admin)\):" > /dev/null; then
3838
should_run=true
3939
break
4040
fi
@@ -68,7 +68,7 @@ jobs:
6868
run: npm run test:admin -- --watch=false --browsers=ChromeHeadless
6969

7070
- name: Build admin project
71-
run: ng build admin --configuration=production
71+
run: npm run build:admin --configuration=production
7272

7373
- name: Deploy to Firebase Preview (PR)
7474
if: github.event_name == 'pull_request'

.github/workflows/google-cloudrun-docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
message=$(git log --format=%B -n 1 ${{ github.sha }})
2323
echo "Checking commit: ${{ github.sha }}"
2424
echo "Message: $message"
25-
25+
2626
should_run=false
27-
if echo "$message" | grep -E "^[^(]+\((web|config)\):" > /dev/null; then
27+
if echo "$message" | grep -E "^[^(]+\((web)\):" > /dev/null; then
2828
should_run=true
2929
fi
30-
30+
3131
echo "should-run=$should_run" >> $GITHUB_OUTPUT
3232
echo "Web workflow should run: $should_run"
3333
test:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"start": "ng serve web",
77
"build": "ng build web",
88
"build:all": "ng build shared && ng build web && ng build admin && ng build code-samples-mfe",
9+
"build:admin": "ng build admin",
910
"watch": "ng build --watch --configuration development",
1011
"test": "ng test web",
1112
"test:admin": "ng test admin",

0 commit comments

Comments
 (0)