Skip to content

Commit 98c037a

Browse files
committed
fix release pipeline
1 parent 5f81a0f commit 98c037a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
- name: Create release notes for version ${{ steps.release-version.outputs.version }}
3737
# run: npm run --silent changelog > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
3838
run: |
39-
if [ $((grep $(grep -m1 'version' package.json | cut -d '"' -f 4) -n CHANGELOG.md || echo 0) | cut -d ':' -f 1) -eq 3 ]; then \
39+
if [ $((grep "$(grep -m1 'version' package.json | cut -d '"' -f 4)" -n CHANGELOG.md || echo 0)| head -1 | cut -d ':' -f 1) -eq 3 ]; then \
4040
awk '/##/{++c;next} c==1' CHANGELOG.md | awk '!/^$/'; \
4141
else \
4242
>&2 echo 'Unchecked version'; \
4343
echo 1; \
44-
fi > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
44+
fi | tee RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
4545
# https://github.com/ncipollo/release-action
4646
- name: Create github release
4747
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)