Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Vercel

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Pull Vercel environment info
run: vercel pull --yes --environment=${{ github.event_name == 'push' && 'production' || 'preview' }} --token=$VERCEL_TOKEN

- name: Build project
run: vercel build --token=$VERCEL_TOKEN

- name: Deploy to Vercel
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN --prod=${{ github.event_name == 'push' }}
41 changes: 24 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
name: Test
name: Test Chrome Extension

on:
push:
branches: [main]
pull_request:
branches: [main]
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: amazon-order-csv

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Checkout code
uses: actions/checkout@v3

Copilot AI May 14, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider aligning the checkout action version with other workflows (e.g., using actions/checkout@v4) for consistency across the project.

Suggested change
uses: actions/checkout@v3
uses: actions/checkout@v4

Copilot uses AI. Check for mistakes.

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ node_modules/



babel.config.js
babel.config.js
.vercel
2 changes: 1 addition & 1 deletion amazon-order-csv/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
});

chrome.runtime.onInstalled.addListener(() => {
chrome.tabs.create({ url: "https://www.google.com/" });
chrome.tabs.create({ url: "https://fitcheck-nirathh-nirathhs-projects.vercel.app/" });
});


Expand Down
2 changes: 1 addition & 1 deletion fitcheck/app/dashboard/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { Main } from "next/document";

import Image from "next/image";
import { useState } from "react";
import MainLayout from "../components/layout.jsx";
Expand Down
Loading
Loading