Skip to content

Commit e24706d

Browse files
committed
fixes
1 parent 9ecb072 commit e24706d

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/test-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- name: Install Dependencies
2323
run: deno install
2424

25+
- name: Build
26+
run: deno task build
27+
2528
- name: Test deno deploy command in astro-demo
2629
working-directory: ./astro-demo
2730
run: deno deploy --token=${{ secrets.DENO_DEPLOY_TOKEN }} --org=${{ vars.DENO_DEPLOY_ORG }} --app=${{ vars.DENO_DEPLOY_APP }}

auth.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { observable } from "@trpc/server/observable";
1616
import { Spinner } from "@std/cli/unstable-spinner";
1717
import { error } from "./util.ts";
18-
import token_storage from "./token_storage.ts";
18+
import token_storage, { tokenIsTemp } from "./token_storage.ts";
1919
import { EventSourcePolyfill } from "event-source-polyfill";
2020

2121
export function createTrpcClient(debug: boolean, deployUrl: string) {
@@ -69,6 +69,13 @@ export function createTrpcClient(debug: boolean, deployUrl: string) {
6969
return false;
7070
}
7171

72+
if (tokenIsTemp) {
73+
error(
74+
debug,
75+
"The token specified via 'DENO_DEPLOY_TOKEN' is invalid.",
76+
);
77+
}
78+
7279
if (typeof retryPromise !== "undefined") {
7380
token_storage.remove();
7481
error(

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ await new Command()
261261
Calling this subcommand without any further subcommands will
262262
deploy your local directory to the specified application.`)
263263
.globalOption("--endpoint <endpoint:string>", "the endpoint", {
264-
default: "https://app.deno.com",
264+
default: "https://console.deno.com",
265265
hidden: true,
266266
})
267267
.globalOption("--debug", "Enable debug output", {

token_storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let cachedToken: string | null = null;
2-
let tokenIsTemp = false;
2+
export let tokenIsTemp = false;
33
let cannotInteractWithKeychain = false;
44

55
const KEYCHAIN_WARNING =

0 commit comments

Comments
 (0)