5353 timeout-minutes : 15
5454 - name : Bundle package for Deno
5555 id : deno-bundle
56- uses : stdlib-js/deno- bundle-action@main
56+ uses : stdlib-js/bundle-action@main
5757 with :
5858 target : ' deno'
5959 - name : Rewrite file contents
@@ -109,7 +109,7 @@ jobs:
109109 timeout-minutes : 15
110110 - name : Create Universal Module Definition (UMD) bundle
111111 id : umd-bundle
112- uses : stdlib-js/deno- bundle-action@main
112+ uses : stdlib-js/bundle-action@main
113113 with :
114114 target : ' umd'
115115 - name : Rewrite file contents
@@ -139,7 +139,7 @@ jobs:
139139 run : |
140140 mkdir -p esm
141141 cp README.md LICENSE CONTRIBUTORS NOTICE ./esm
142-
142+
143143 # Copy TypeScript definitions to esm directory:
144144 if [ -e ./docs/types/index.d.ts ]; then
145145 cp ./docs/types/index.d.ts ./esm/index.d.ts
@@ -158,7 +158,7 @@ jobs:
158158 timeout-minutes : 15
159159 - name : Create ES Module (ESM) bundle
160160 id : esm-bundle
161- uses : stdlib-js/deno- bundle-action@main
161+ uses : stdlib-js/bundle-action@main
162162 with :
163163 target : ' esm'
164164 - name : Rewrite file contents
@@ -185,6 +185,9 @@ jobs:
185185 find ./esm -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"cli\">[\s\S]+<\!\-\- \/.cli \-\->//g"
186186 find ./esm -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"c\">[\s\S]+<\!\-\- \/.c \-\->//g"
187187
188+ # Rewrite examples section to be a HTML file:
189+ find ./esm -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\#\# Examples([\s\S]*)\`\`\`javascript([\s\S]+?)\`\`\`/\#\# Examples\1\`\`\`html\n<\!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<script type=\"module\">\n\2\n<\/script>\n<\/head>\n<\/html>\n\`\`\`/g"
190+
188191 - name : Publish to esm branch
189192 uses : peaceiris/actions-gh-pages@v3
190193 with :
0 commit comments