Skip to content

Commit

Permalink
Update cd and config to fix deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
navzam committed Aug 16, 2024
1 parent 4641640 commit 16b7fbe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ module.exports = {
"quotes": ["error", "double"],
"import/no-unresolved": 0,
"indent": ["error", 2],
"object-curly-spacing": ["error", "always"],
},
};
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
with:
workload_identity_provider: 'projects/705985154569/locations/global/workloadIdentityPools/kipr-github-identity-pool/providers/github'
project_id: 'kipr-321905'
service_account: 'simulator-cloud-functions-gith@kipr-321905.iam.gserviceaccount.com'
create_credentials_file: true
export_environment_variables: true
cleanup_credentials: true
Expand Down
3 changes: 2 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"predeploy": [
"yarn --cwd \"$RESOURCE_DIR\" run lint",
"yarn --cwd \"$RESOURCE_DIR\" run build"
]
],
"source": "."
},
"emulators": {
"auth": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
"node": "20"
},
"main": "lib/index.js",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { onSchedule } from "firebase-functions/v2/scheduler";
import * as logger from "firebase-functions/logger";

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

0 comments on commit 16b7fbe

Please sign in to comment.