Skip to content

Commit 16b7fbe

Browse files
committed
Update cd and config to fix deployment issues
1 parent 4641640 commit 16b7fbe

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ module.exports = {
2828
"quotes": ["error", "double"],
2929
"import/no-unresolved": 0,
3030
"indent": ["error", 2],
31+
"object-curly-spacing": ["error", "always"],
3132
},
3233
};

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
workload_identity_provider: 'projects/705985154569/locations/global/workloadIdentityPools/kipr-github-identity-pool/providers/github'
4545
project_id: 'kipr-321905'
46+
service_account: 'simulator-cloud-functions-gith@kipr-321905.iam.gserviceaccount.com'
4647
create_credentials_file: true
4748
export_environment_variables: true
4849
cleanup_credentials: true

firebase.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"predeploy": [
44
"yarn --cwd \"$RESOURCE_DIR\" run lint",
55
"yarn --cwd \"$RESOURCE_DIR\" run build"
6-
]
6+
],
7+
"source": "."
78
},
89
"emulators": {
910
"auth": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"logs": "firebase functions:log"
1212
},
1313
"engines": {
14-
"node": "18"
14+
"node": "20"
1515
},
1616
"main": "lib/index.js",
1717
"dependencies": {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { onSchedule } from "firebase-functions/v2/scheduler";
22
import * as logger from "firebase-functions/logger";
33

4-
export const unconsentedUserCleanup = onSchedule("every hour", async (event) => {
5-
logger.info("Hello functions!", { structuredData: true });
4+
export const testFunction2 = onSchedule("every hour", async () => {
5+
logger.info("Hello functions 2!", { structuredData: true });
66
});

0 commit comments

Comments
 (0)