Skip to content

Commit 1a98e7a

Browse files
committed
fix: optimized gh workflows for firebase deployments
1 parent 08a1800 commit 1a98e7a

4 files changed

Lines changed: 11 additions & 25 deletions

File tree

.github/workflows/firebase-hosting-merge-dev.yml renamed to .github/workflows/dev-deploy.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
with:
15-
persist-credentials: false
16-
17-
- name: Reconfigure git to use HTTP authentication
18-
run: >
19-
git config --global url."https://github.com/".insteadOf
20-
ssh://git@github.com/
21-
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: 18
2514

2615
- run: yarn install --frozen-lockfile && npm run build:dev
2716
env:

.github/workflows/firebase-hosting-pull-request-dev.yml renamed to .github/workflows/pr-preview-dev.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ jobs:
99
permissions: write-all
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
13+
1314
- run: yarn install --frozen-lockfile && npm run build:dev
15+
env:
16+
CI: false
17+
1418
- uses: FirebaseExtended/action-hosting-deploy@v0
1519
with:
1620
repoToken: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/firebase-hosting-pull-request-main.yml renamed to .github/workflows/pr-preview-prod.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ jobs:
99
permissions: write-all
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
13+
1314
- run: yarn install --frozen-lockfile && npm run build:prod
15+
env:
16+
CI: false
17+
1418
- uses: FirebaseExtended/action-hosting-deploy@v0
1519
with:
1620
repoToken: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/firebase-hosting-merge-main.yml renamed to .github/workflows/prod-deploy.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
with:
15-
persist-credentials: false
16-
17-
- name: Reconfigure git to use HTTP authentication
18-
run: >
19-
git config --global url."https://github.com/".insteadOf
20-
ssh://git@github.com/
21-
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: 18
2514

26-
- run: yarn install --frozen-lockfile && npm run build:prod
15+
- run: yarn install --frozen-lockfile && npm run build:dev
2716
env:
2817
CI: false
2918

0 commit comments

Comments
 (0)