From 0b9fcd522306de3dd93945a11b43f9a6b58952ae Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Thu, 9 May 2024 13:30:14 -0400 Subject: [PATCH 1/4] chore: fixup deploy workflows --- .firebaserc | 3 ++- .github/workflows/deploy-prod.yml | 4 ++-- firebase.json | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.firebaserc b/.firebaserc index cad1450e..5b86ffb0 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,5 +1,6 @@ { "projects": { - "default": "community-cookbook-staging" + "default": "community-cookbook-59807", + "prod": "community-cookbook-59807" } } diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 25ca469f..e4bee2c8 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -32,9 +32,9 @@ jobs: - uses: matter-labs/action-hosting-deploy@main with: repoToken: "${{ secrets.GITHUB_TOKEN }}" - firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK_59807 }}" target: prod - projectId: community-cookbook + projectId: community-cookbook-59807 channelId: live # TODO: re-enable once we are closer to production deployment diff --git a/firebase.json b/firebase.json index 7dd16c19..ddb687d0 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,10 @@ { "hosting": { "public": ".output/public", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] } } From b018354c2a7d56c7aa6faf294d23497ce205c0db Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Thu, 9 May 2024 13:32:53 -0400 Subject: [PATCH 2/4] fix: prettier --- .firebaserc | 2 +- bun.lockb | Bin 613200 -> 613200 bytes firebase.json | 6 +----- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.firebaserc b/.firebaserc index 5b86ffb0..a0cda7ac 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,6 +1,6 @@ { "projects": { - "default": "community-cookbook-59807", + "default": "community-cookbook-staging", "prod": "community-cookbook-59807" } } diff --git a/bun.lockb b/bun.lockb index fe221d5eb06ef9b4c887bcf4663e778c6762a270..2b4c71518246b64a8115bdd515efd299c24d7fc5 100755 GIT binary patch delta 49 zcmcbxP4&Vy)rJF7M2#)Eo`RhoQ!dXdWJw`&~B&B2E^<@%(2~0om0pJ0E{FJ Ai~s-t delta 49 wcmcbxP4&Vy)rJF7M2#)Eo`RhoJ Date: Thu, 9 May 2024 15:30:31 -0400 Subject: [PATCH 3/4] chore: edit permisions on workflow --- .github/workflows/deploy-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index b625be62..a600ef89 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -3,6 +3,8 @@ on: pull_request: workflow_dispatch: +permissions: write-all + jobs: build_and_preview: env: From 274f397f2b1b3979e0c8b6195dcd7b8cc6243219 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Thu, 9 May 2024 15:52:16 -0400 Subject: [PATCH 4/4] edit workflow --- .github/workflows/deploy-preview.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index a600ef89..aed033fa 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -3,7 +3,10 @@ on: pull_request: workflow_dispatch: -permissions: write-all +permissions: + checks: write + contents: read + pull-requests: write jobs: build_and_preview: