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 4141 run : TARGET=deno ./build
4242
4343 - 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 5656 TARGET=${{ matrix.target }} node plat-pkg/package.json.gen.js
5757
5858 - 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
6061 if : startsWith(github.ref, 'refs/tags/v')
6162 with :
6263 access : public
7677 cp ../README.md .
7778
7879 - 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
8181 if : startsWith(github.ref, 'refs/tags/v')
8282 with :
8383 access : public
Original file line number Diff line number Diff line change 11# minify-html changelog
22
3+ ## Pending
4+
5+ - Fix Node.js builds.
6+ - Fix Deno builds.
7+
38## 0.16.1
49
510- Fix Node.js builds.
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ if [[ "$target" = "bundler" ]]; then
1717elif [[ " $target " = " deno" ]]; then
1818 rm .gitignore
1919 cp ../deno.json .
20+ # Necessary for Deno.
21+ sed -i ' 1s%^%/* @ts-self-types="./index.d.ts" */\n%' index.js
2022fi
2123popd
2224
You can’t perform that action at this time.
0 commit comments