File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 41
41
run : TARGET=deno ./build
42
42
43
43
- name : Publish to JSR
44
- working-directory : ./minify-html-wasm/pkg
45
- run : npx jsr publish
44
+ working-directory : ./minify-html-wasm
45
+ run : |
46
+ # Sadly `jsr` ignores .gitignore files (i.e. our built dist package) and will fail on a dirty repo,
47
+ # contrary to almost every other build/package system.
48
+ # Therefore, we first move to a non-ignored folder.
49
+ mv -iv pkg pkg-pub
50
+ cd pkg-pub
51
+ npx jsr publish --allow-dirty
Original file line number Diff line number Diff line change 56
56
TARGET=${{ matrix.target }} node plat-pkg/package.json.gen.js
57
57
58
58
- name : Create and publish native package
59
- uses : JS-DevTools/npm-publish@v3
59
+ # We need this fix: https://github.com/JS-DevTools/npm-publish/issues/198
60
+ uses : JS-DevTools/npm-publish@66e0e1d9494ba904d4d608ae77fc5f4fe9bcc038
60
61
if : startsWith(github.ref, 'refs/tags/v')
61
62
with :
62
63
access : public
76
77
cp ../README.md .
77
78
78
79
- name : Pack and publish package
79
- # We need this fix: https://github.com/JS-DevTools/npm-publish/issues/198
80
- uses : JS-DevTools/npm-publish@66e0e1d9494ba904d4d608ae77fc5f4fe9bcc038
80
+ uses : JS-DevTools/npm-publish@v3
81
81
if : startsWith(github.ref, 'refs/tags/v')
82
82
with :
83
83
access : public
Original file line number Diff line number Diff line change 1
1
# minify-html changelog
2
2
3
+ ## Pending
4
+
5
+ - Fix Node.js builds.
6
+ - Fix Deno builds.
7
+
3
8
## 0.16.1
4
9
5
10
- Fix Node.js builds.
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ if [[ "$target" = "bundler" ]]; then
17
17
elif [[ " $target " = " deno" ]]; then
18
18
rm .gitignore
19
19
cp ../deno.json .
20
+ # Necessary for Deno.
21
+ sed -i ' 1s%^%/* @ts-self-types="./index.d.ts" */\n%' index.js
20
22
fi
21
23
popd
22
24
You can’t perform that action at this time.
0 commit comments