diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 586b7ea..b95c745 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,13 +29,13 @@ jobs: export DENO_INSTALL="/home/runner/.deno" export PATH="${DENO_INSTALL}/bin:${PATH}" mkdir -p "${DENO_INSTALL}" - deno upgrade --version 1.34.1 || ( + deno upgrade || ( curl -fsSL https://deno.land/x/install/install.sh > "${DENO_INSTALL}/.sh"; sh "${DENO_INSTALL}/.sh" ) echo "DENO_INSTALL=${DENO_INSTALL}" >> $GITHUB_ENV echo "PATH=${PATH}" >> $GITHUB_ENV - deno upgrade --version 1.34.1 + deno upgrade - name: fetch any uncached dependencies run: | diff --git a/db.ts b/db.ts index 586e97c..9aabf81 100644 --- a/db.ts +++ b/db.ts @@ -6,7 +6,7 @@ await load({ }); export const mongoClient = new MongoClient(); - +console.log(Deno.env.get("DB_URL")) await mongoClient.connect(Deno.env.get("DB_URL")!); const db = mongoClient.database("one_bbn");