From b1a84b2bc2949f93bc9fef15a4499ad283cf1f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Fri, 11 Oct 2024 03:34:16 +0900 Subject: [PATCH] chore: remove unused --- .env.example | 1 - .github/workflows/deploy.yml | 28 ---------------------------- build/index.ts | 4 ---- package.json | 5 ++--- yarn.lock | 5 ----- 5 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 .env.example delete mode 100644 .github/workflows/deploy.yml delete mode 100644 build/index.ts diff --git a/.env.example b/.env.example deleted file mode 100644 index e49d79a..0000000 --- a/.env.example +++ /dev/null @@ -1 +0,0 @@ -MY_SECRET="MY_SECRET" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 3d6b9a8..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Deploy to Cloudflare Pages - -on: - workflow_run: - workflows: ["Build"] - types: - - completed - -jobs: - deploy-to-cloudflare: - name: Automatic Cloudflare Deploy - runs-on: ubuntu-22.04 - steps: - - name: Deploy to Cloudflare - if: ${{ github.event.workflow_run.conclusion == 'success' }} - uses: ubiquity/cloudflare-deploy-action@main - with: - repository: ${{ github.repository }} - production_branch: ${{ github.event.repository.default_branch }} - build_artifact_name: "static" - output_directory: "static" - current_branch: ${{ github.event.workflow_run.head_branch }} - cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }} - commit_sha: ${{ github.event.workflow_run.head_sha }} - workflow_run_id: ${{ github.event.workflow_run.id }} - app_id: ${{ secrets.APP_ID }} - app_private_key: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/build/index.ts b/build/index.ts deleted file mode 100644 index e1cf0b8..0000000 --- a/build/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as dotenv from "dotenv"; -// load environment variables (if you have them) -dotenv.config(); -console.log("Welcome to ts-template"); diff --git a/package.json b/package.json index 9e8bcbd..d98f2eb 100644 --- a/package.json +++ b/package.json @@ -42,14 +42,13 @@ "dependencies": { "@ethersproject/providers": "5.7.2", "axios": "^1.7.1", - "node-fetch": "^3.3.2", - "dotenv": "^16.4.4" + "node-fetch": "^3.3.2" }, "devDependencies": { + "@actions/core": "^1.11.1", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", - "@actions/core": "^1.11.1", "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.2", "@cspell/dict-node": "^4.0.3", diff --git a/yarn.lock b/yarn.lock index c3361d6..042530c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4283,11 +4283,6 @@ dot-prop@^6.0.1: dependencies: is-obj "^2.0.0" -dotenv@^16.4.4: - version "16.4.4" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.4.tgz#a26e7bb95ebd36272ebb56edb80b826aecf224c1" - integrity sha512-XvPXc8XAQThSjAbY6cQ/9PcBXmFoWuw1sQ3b8HqUCR6ziGXjkTi//kB9SWa2UwqlgdAIuRqAa/9hVljzPehbYg== - eastasianwidth@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"