From 9a98dc5f2e26ce3846add790f35f3be412d6a413 Mon Sep 17 00:00:00 2001 From: Taesung Hwang Date: Sun, 17 Nov 2024 14:40:09 -0800 Subject: [PATCH] Fix branch name in deployment workflow - `$default-branch` is for workflow templates, not actual workflows --- .github/workflows/deploy.yml | 2 +- package.json | 10 +++++----- vite.config.ts | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e88e81..64e1bcd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy site to GitHub Pages on: push: - branches: [$default-branch] + branches: [main] # Include permissions for GITHUB_TOKEN to deploy to GitHub Pages permissions: diff --git a/package.json b/package.json index 5e21e5a..cdf21f6 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "type": "module", "scripts": { "dev": "vite", - "test": "jest --watch", - "build": "tsc -b && vite build", + "test": "vitest --watch", + "build": "tsc -b && vite build --base=/pheatures/", "lint": "eslint .", - "preview": "vite preview" + "preview": "vite preview --base=/pheatures/" }, "dependencies": { "@emotion/react": "^11.9.0", @@ -33,10 +33,10 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.13", "globals": "^15.11.0", - "jest": "^28.1.0", "ts-jest": "^28.0.2", "typescript": "~5.6.2", "typescript-eslint": "^8.10.0", - "vite": "^5.4.9" + "vite": "^5.4.9", + "vitest": "^2.1.4" } } diff --git a/vite.config.ts b/vite.config.ts index 5367480..a84dd40 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react-swc"; // https://vite.dev/config/ export default defineConfig({ - base: "/pheatures/", // for deployment on GitHub pages plugins: [react()], resolve: { alias: {