From abd93fb666e809b0f69dd9c0d6f57279d39e1cea Mon Sep 17 00:00:00 2001 From: syfxlin Date: Sat, 13 Jan 2024 16:41:29 +0800 Subject: [PATCH] fix(secrets): Load secrets command not working --- .github/workflows/release.yml | 2 +- src/services/cfg/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64a5c33..9358985 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: - name: Setup PNPM uses: pnpm/action-setup@v2.4.0 with: - version: 7.27.1 + version: 8.12.1 - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/src/services/cfg/index.ts b/src/services/cfg/index.ts index 2b3da04..f80e220 100644 --- a/src/services/cfg/index.ts +++ b/src/services/cfg/index.ts @@ -143,7 +143,7 @@ export class CfgModule { } else if (options.yaml || ext === ".yaml" || ext === ".yml") { await this.secret(yaml.parse(value) as Secrets); } else { - await this.secret(dotenv.parse(file)); + await this.secret(dotenv.parse(value)); } }); secret