Skip to content

Commit 4d91d02

Browse files
committed
Remove links to other branches before publishing to npm
1 parent 02b1a92 commit 4d91d02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish.yml.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
- name: Replace all GitHub links to individual packages with npm links
4040
run: |
4141
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei '/tree\/main/b; s/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
42+
- name: Replace list with links to other branches from installation section
43+
run: |
44+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`\n\nAlternatively,[^<]+<\/section>/\`\`\`\n\n<\/section>/"
4245
- name: Replace all stdlib GitHub dependencies with the respective npm packages
4346
run: |
4447
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'

0 commit comments

Comments
 (0)