diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a591690a..5ef452d5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -6,8 +6,6 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] - schedule: - - cron: '30 19 * * 3' jobs: analyze: @@ -37,11 +35,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -50,7 +48,7 @@ jobs: # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | diff --git a/.npmrc b/.npmrc deleted file mode 100644 index cffe8cde..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -save-exact=true diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 00000000..e793efd2 Binary files /dev/null and b/bun.lockb differ diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 00000000..b6874be1 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +exact = true diff --git a/vercel.json b/vercel.json index 7ae9a3de..757ea46e 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,9 @@ { - "github": { - "silent": true - } + "$schema": "https://openapi.vercel.sh/vercel.json", + "installCommand": "bun install", + "buildCommand": "bun run build", + "outputDirectory": "dist", + "devCommand": "bun dev", + "framework": "vite", + "ignoreCommand": "! git diff --name-only HEAD^ HEAD | grep --quiet --invert-match --extended-regexp '^README\\.md|\\.prettierrc\\.js||(\\.vscode|\\.github|\\.husky|scripts)/.*$'" } diff --git a/vercel.skip.js b/vercel.skip.js deleted file mode 100644 index 6259c7dd..00000000 --- a/vercel.skip.js +++ /dev/null @@ -1,37 +0,0 @@ -// @ts-check - -const build = () => process.exit(1); -const noBuild = () => process.exit(0); - -const { - VERCEL, // An indicator that the app is deployed and running on Vercel. Example: 1. - CI, // An indicator that the code is running in a Continuous Integration environment. Example: 1. NOTE: This Variable is only exposed during Build Step. - VERCEL_ENV, // The Environment that the app is deployed an running on. The value can be either production, preview, or development. - VERCEL_URL, // The URL of the deployment. Example: my-site-7q03y4pi5.vercel.app - VERCEL_REGION, // The ID of the Region where the app is running. Example: cdg1. NOTE: This Variable is only exposed during Runtime for Serverless Functions. - VERCEL_GIT_PROVIDER, // The Git Provider the deployment is triggered from. Example: github. - VERCEL_GIT_REPO_SLUG, // The origin repository the deployment is triggered from. Example: my-site. - VERCEL_GIT_REPO_OWNER, // The account that owns the repository the deployment is triggered from. Example: acme. - VERCEL_GIT_REPO_ID, // The ID of the repository the deployment is triggered from. Example: 117716146. - VERCEL_GIT_COMMIT_REF, // The git branch of the commit the deployment was triggered by. Example: improve-about-page. - VERCEL_GIT_COMMIT_SHA, // The git SHA of the commit the deployment was triggered by. Example: fa1eade47b73733d6312d5abfad33ce9e4068081. - VERCEL_GIT_COMMIT_MESSAGE, // The message attached to the commit the deployment was triggered by. Example: Update about page. - VERCEL_GIT_COMMIT_AUTHOR_LOGIN, // The username attached to the author of the commit that the project was deployed by. Example: johndoe. - VERCEL_GIT_COMMIT_AUTHOR_NAME, // The name attached to the author of the commit that the project was deployed by. Example: John Doe. -} = process.env; - -if ( - // commit message has [deploy] or [build] - /\[(?:deploy|build)]/.test(VERCEL_GIT_COMMIT_MESSAGE) -) { - build(); -} - -if ( - // commit message has [skip deploy], [skip build], [no deploy], or [no build] - /\[(?:skip|no)[ -](?:deploy|build)]/.test(VERCEL_GIT_COMMIT_MESSAGE) -) { - noBuild(); -} - -build();