-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle response erroring and invalid content types (#10)
- Loading branch information
Showing
10 changed files
with
44 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ jobs: | |
CI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: bvm/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
- name: Test | ||
run: deno test --allow-net | ||
- name: Get tag version | ||
|
@@ -14,10 +16,10 @@ jobs: | |
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: npm build | ||
run: deno run -A --no-check ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
run: deno task build:npm ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
- name: npm publish | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.vscode | ||
npm | ||
deno.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"tasks": { | ||
"build:npm": "deno run -A ./scripts/build_npm.ts" | ||
}, | ||
"exclude": [ | ||
"npm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
{ | ||
"typescript": { | ||
"indentWidth": 2 | ||
}, | ||
"json": { | ||
"indentWidth": 2 | ||
}, | ||
"markdown": { | ||
}, | ||
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md}"], | ||
"excludes": [ | ||
"**/node_modules", | ||
"**/*-lock.json" | ||
], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/typescript-0.74.0.wasm", | ||
"https://plugins.dprint.dev/json-0.15.6.wasm", | ||
"https://plugins.dprint.dev/markdown-0.14.1.wasm" | ||
"https://plugins.dprint.dev/typescript-0.88.7.wasm", | ||
"https://plugins.dprint.dev/json-0.19.1.wasm", | ||
"https://plugins.dprint.dev/markdown-0.16.3.wasm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters