Skip to content

Commit

Permalink
Add type check step to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Bronsveld committed Apr 18, 2023
1 parent 8e2c40d commit 2eb104b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/checkout@v3
- name: Install packages
run: npm ci
- name: Run type checking
run: npm run typecheck
- name: Build and package extension
run: npm run package -- $(cut -c 2- <<< $GITHUB_REF_NAME)
- name: Upload vsix file to GitHub release
Expand Down
2 changes: 1 addition & 1 deletion src/anki-connect/anki-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class AnkiConnect {

const permissionResult = await this.requestPermission();

if (permissionResult.requireApikey === false)
if (permissionResult.permission === "granted" && permissionResult.requireApiKey === false)
// Don't return api key if not required for requests.
return undefined;

Expand Down

0 comments on commit 2eb104b

Please sign in to comment.