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:
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -147,11 +147,11 @@ for ( i = 0; i < DTYPES.length; i++ ) {
147
147
148
148
## See Also
149
149
150
-
- <spanclass="package-name">[`@stdlib/array/convert`][@stdlib/array/convert]</span><spanclass="delimiter">: </span><spanclass="description">convert an array to an array of a different data type.</span>
151
-
- <spanclass="package-name">[`@stdlib/array/convert-same`][@stdlib/array/convert-same]</span><spanclass="delimiter">: </span><spanclass="description">convert an array to the same data type as a second input array.</span>
152
-
- <spanclass="package-name">[`@stdlib/array/dtypes`][@stdlib/array/dtypes]</span><spanclass="delimiter">: </span><spanclass="description">list of array data types.</span>
153
-
- <spanclass="package-name">[`@stdlib/array/safe-casts`][@stdlib/array/safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of array data types to which a provided array data type can be safely cast.</span>
154
-
- <spanclass="package-name">[`@stdlib/ndarray/same-kind-casts`][@stdlib/ndarray/same-kind-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same kind.</span>
150
+
- <spanclass="package-name">[`@stdlib/array-convert`][@stdlib/array/convert]</span><spanclass="delimiter">: </span><spanclass="description">convert an array to an array of a different data type.</span>
151
+
- <spanclass="package-name">[`@stdlib/array-convert-same`][@stdlib/array/convert-same]</span><spanclass="delimiter">: </span><spanclass="description">convert an array to the same data type as a second input array.</span>
152
+
- <spanclass="package-name">[`@stdlib/array-dtypes`][@stdlib/array/dtypes]</span><spanclass="delimiter">: </span><spanclass="description">list of array data types.</span>
153
+
- <spanclass="package-name">[`@stdlib/array-safe-casts`][@stdlib/array/safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of array data types to which a provided array data type can be safely cast.</span>
154
+
- <spanclass="package-name">[`@stdlib/ndarray-same-kind-casts`][@stdlib/ndarray/same-kind-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same kind.</span>
0 commit comments