-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eslint errors ant styling errors
- Loading branch information
Showing
10 changed files
with
272 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
--- | ||
name: Checks | ||
on: | ||
- push | ||
- workflow_dispatch | ||
- push | ||
- workflow_dispatch | ||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
env: | ||
SKIP_ENV_VALIDATION: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.9.0 | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run EsLint | ||
run: pnpm run lint | ||
- name: Run Tsc | ||
run: pnpm run tsc | ||
checks: | ||
runs-on: ubuntu-latest | ||
env: | ||
SKIP_ENV_VALIDATION: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.9.0 | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run EsLint | ||
run: pnpm run lint | ||
- name: Run Tsc | ||
run: pnpm run tsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
name: Dev Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }} | ||
on: | ||
workflow_dispatch: | ||
workflow_dispatch: | ||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
environment: development | ||
env: | ||
AUTH0_SECRET: ${{secrets.DEV_ENV_AUTH0_SECRET}} | ||
AUTH0_BASE_URL: ${{secrets.DEV_ENV_AUTH0_BASE_URL}} | ||
AUTH0_ISSUER_BASE_URL: ${{secrets.DEV_ENV_AUTH0_ISSUER_BASE_URL}} | ||
AUTH0_CLIENT_ID: ${{secrets.DEV_ENV_AUTH0_CLIENT_ID}} | ||
AUTH0_CLIENT_SECRET: ${{secrets.DEV_ENV_AUTH0_CLIENT_SECRET}} | ||
AUTH0_AUDIENCE: ${{secrets.DEV_ENV_AUTH0_AUDIENCE}} | ||
AUTH0_SCOPE: "openid profile email offline_access" | ||
API_BASE_URL: ${{secrets.DEV_ENV_API_BASE_URL}} | ||
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.DEV_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}} | ||
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com" | ||
NEXT_CONTACT_US_FORM_KEY: ${{secrets.DEV_ENV_NEXT_CONTACT_US_FORM_KEY}} | ||
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.DEV_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}} | ||
RECAPTCHA_SITE_SECRET: ${{secrets.DEV_ENV_RECAPTCHA_SITE_SECRET}} | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Delete robots.prod.txt in dev env | ||
run: rm public/robots.prod.txt | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.9.0 | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install Vercel CLI | ||
run: pnpm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
deployment: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
environment: development | ||
env: | ||
AUTH0_SECRET: ${{secrets.DEV_ENV_AUTH0_SECRET}} | ||
AUTH0_BASE_URL: ${{secrets.DEV_ENV_AUTH0_BASE_URL}} | ||
AUTH0_ISSUER_BASE_URL: ${{secrets.DEV_ENV_AUTH0_ISSUER_BASE_URL}} | ||
AUTH0_CLIENT_ID: ${{secrets.DEV_ENV_AUTH0_CLIENT_ID}} | ||
AUTH0_CLIENT_SECRET: ${{secrets.DEV_ENV_AUTH0_CLIENT_SECRET}} | ||
AUTH0_AUDIENCE: ${{secrets.DEV_ENV_AUTH0_AUDIENCE}} | ||
AUTH0_SCOPE: "openid profile email offline_access" | ||
API_BASE_URL: ${{secrets.DEV_ENV_API_BASE_URL}} | ||
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.DEV_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}} | ||
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com" | ||
NEXT_CONTACT_US_FORM_KEY: ${{secrets.DEV_ENV_NEXT_CONTACT_US_FORM_KEY}} | ||
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.DEV_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}} | ||
RECAPTCHA_SITE_SECRET: ${{secrets.DEV_ENV_RECAPTCHA_SITE_SECRET}} | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Delete robots.prod.txt in dev env | ||
run: rm public/robots.prod.txt | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.9.0 | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install Vercel CLI | ||
run: pnpm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.