Skip to content

Commit e5a1a9f

Browse files
committed
update github actions and clarify extraction compression error
1 parent cd9bc12 commit e5a1a9f

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
deno-version: v1.x
2222

2323
- name: Run Deno build script
24-
run: deno run -A build.ts
24+
run: deno task build-npm
2525

2626
- name: Navigate to npm directory
2727
run: cd ./npm

.github/workflows/run-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ jobs:
2020

2121
- name: Run Deno Test
2222
run: deno task test
23+
24+
- name: Build JSR
25+
run: deno task build-jsr
26+
27+
- name: Build NPM
28+
run: deno task build-npm

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ $ deno task test
9494
$ deno fmt
9595
# lint
9696
$ deno lint
97-
# publish jsr:
97+
# publish JSR:
9898
$ deno publish
9999
# build NPM package:
100-
$ deno run -A build.ts
100+
$ deno build-npm
101101
# publish NPM:
102102
$ cd npm && npm publish
103103
```

deno.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"tasks": {
1010
"start": "deno run --allow-net --allow-read src/main.ts",
1111
"test": "deno test --allow-net --allow-read __tests__",
12+
"build-npm": "deno run -A build.ts",
13+
"build-jsr": "deno publish --dry-run --allow-dirty",
1214
"fmt": "deno fmt"
1315
},
1416
"fmt": {

src/extractionconfig.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ export class ExtractionConfig {
120120
// } else {
121121
throw new errors.ExtractionConfigError(
122122
`Auto compression for ${this.document_compression_format} format isn't available. ` +
123-
`You can manually compress to ${this.document_compression_format}` +
124-
`or choose the gzip format for auto compression`,
123+
`You can manually compress to ${this.document_compression_format}.`,
125124
);
126125
// }
127126
}

0 commit comments

Comments
 (0)