Skip to content

Commit 718dc3d

Browse files
ci: add step to remove sections added in previous commit
That is because I don't want those sections to show up on the NPM package README.
1 parent c3e424b commit 718dc3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/many--publish-npm-package.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ jobs:
7777
link="https://$domain/$repo/blob/$commit"
7878
sed --in-place "s#\(\[.*\]\)(\./\([^)]*\))#\1($link/\2)#g" "$file"
7979
sed --in-place "s#\(src\|srcset\)=\"\./#\1=\"$link/#g" "$file"
80+
- name: Remove sections from readme.
81+
run: |
82+
sed --in-place '/<badges-container/,/<\/badges-container>/d' README.md
83+
sed --in-place '/<toc-section/,/<\/toc-section>/d' README.md
84+
sed --in-place '/<contributing-section/,/<\/contributing-section>/d' README.md
8085
- name: Publish NPM package to registry (tags)
8186
if: steps.version.outputs.is_release == 'true'
8287
run: |

0 commit comments

Comments
 (0)