You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/productionize.yml
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,12 @@ on:
34
34
type: boolean
35
35
default: true
36
36
37
+
# Run workflow upon completion of `publish` workflow run:
38
+
workflow_run:
39
+
workflows: ["publish"]
40
+
types: [completed]
41
+
42
+
37
43
# Concurrency group to prevent multiple concurrent executions:
38
44
concurrency:
39
45
group: productionize
@@ -94,10 +100,11 @@ jobs:
94
100
# Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
# Add entry for CLI package to See Also section of README.md:
144
+
cliPkgName=$(jq -r '.name' package.json)-cli
145
+
escapedPkg=$(echo "$cliPkgName" | sed -e 's/\//\\\//g')
146
+
escapedPkg=$(echo "$escapedPkg" | sed -e 's/\@/\\\@/g')
147
+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"related\">(?:\n\n\* \* \*\n\n## See Also\n\n)?/<section class=\"related\">\n\n## See Also\n\n- <span class=\"package-name\">[\`$escapedPkg\`][$escapedPkg]<\/span><span class=\"delimiter\">: <\/span><span class=\"description\">CLI package for use as a command-line utility.<\/span>\n/"
148
+
149
+
# Add link definition for CLI package to README.md:
<!-- <div class="equation" align="center" data-raw-text="f(t; T, \tau, A, \varphi) = \begin{cases}A \biggl(0.62 - 0.48\biggl|\frac{t-\varphi}{\tau-1} - \frac{1}{2}\biggr| - 0.38\cos\frac{2\pi (t-\varphi)}{\tau-1}\biggr) & (t-\varphi) \mod T < \tau \\ 0 & \textrm{otherwise} \end{cases}" data-equation="eq:bartlett_hann_pulse_waveform">
36
40
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@76fd234ed3f3558f7a75e86bce3ad928b5fb7e3a/lib/node_modules/@stdlib/simulate/iter/bartlett-hann-pulse/docs/img/equation_bartlett_hann_pulse_waveform.svg" alt="Equation for a Bartlett-Hann pulse waveform.">
37
41
<br>
38
-
</div>
42
+
</div>-->
39
43
40
44
<!-- </equation> -->
41
45
@@ -321,10 +325,10 @@ while ( true ) {
321
325
322
326
## See Also
323
327
324
-
- <spanclass="package-name">[`@stdlib/simulate/iter/bartlett-pulse`][@stdlib/simulate/iter/bartlett-pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a Bartlett pulse waveform.</span>
325
-
- <spanclass="package-name">[`@stdlib/simulate/iter/hann-pulse`][@stdlib/simulate/iter/hann-pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a Hann pulse waveform.</span>
326
-
- <spanclass="package-name">[`@stdlib/simulate/iter/pulse`][@stdlib/simulate/iter/pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a pulse waveform.</span>
327
-
- <spanclass="package-name">[`@stdlib/simulate/iter/triangle-wave`][@stdlib/simulate/iter/triangle-wave]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a triangle wave.</span>
328
+
- <spanclass="package-name">[`@stdlib/simulate-iter/bartlett-pulse`][@stdlib/simulate/iter/bartlett-pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a Bartlett pulse waveform.</span>
329
+
- <spanclass="package-name">[`@stdlib/simulate-iter/hann-pulse`][@stdlib/simulate/iter/hann-pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a Hann pulse waveform.</span>
330
+
- <spanclass="package-name">[`@stdlib/simulate-iter/pulse`][@stdlib/simulate/iter/pulse]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a pulse waveform.</span>
331
+
- <spanclass="package-name">[`@stdlib/simulate-iter/triangle-wave`][@stdlib/simulate/iter/triangle-wave]</span><spanclass="delimiter">: </span><spanclass="description">create an iterator which generates a triangle wave.</span>
0 commit comments