Skip to content

Commit

Permalink
Fix: Types and env in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mayanktiwari committed Dec 6, 2024
1 parent 0fe00cf commit 798e592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
deploy:
name: Build and Deploy to S3
runs-on: ubuntu-22.04

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

steps:

- name: Checkout code
Expand All @@ -25,6 +27,9 @@ jobs:
- name: Install dependencies
run: npm install

- name: Environment setup
run: echo "VITE_API_URL=${{ secrets.BACKEND_URL }}" > .env.production

- name: Build the project
run: npm run build:no-tsc

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const Profile = () => {
<div>
<p className="font-semibold">Last Password Reset:</p>
<p className="text-muted-foreground">
{passwordRecovery.lastResetAt
{passwordRecovery?.lastResetAt
? formatDistanceToNow(
new Date(passwordRecovery.lastResetAt),
{ addSuffix: true }
Expand Down

0 comments on commit 798e592

Please sign in to comment.