Skip to content

Commit

Permalink
[meta] fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 27, 2024
1 parent 744135b commit 0cc5b7a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:

- uses: actions/checkout@v4

- uses: ljharb/actions/node/install@main
with:
node-version: node
skip-install: true
skip-ls-check: true

- uses: mindsers/changelog-reader-action@v2
id: changelog_reader
with:
Expand All @@ -47,16 +53,20 @@ jobs:
echo "$_links" >> "${GITHUB_OUTPUT}"
echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
- id: prune-footnotes
- name: 'concat data > tmp.md'
run: |
cat << 'EOF' > tmp.md
${{ steps.changelog_reader.outputs.changes }}
${{ steps.changelog.outputs.links }}
EOF
- run: cat tmp.md

- id: prune-footnotes
run: |
DELIMITER=$(uuidgen)
echo "body<<${DELIMITER}" >> "${GITHUB_OUTPUT}"
npx gfm-footnotes -i tmp.md > "${GITHUB_OUTPUT}"
npx gfm-footnotes -i tmp.md >> "${GITHUB_OUTPUT}"
echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
- uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 0cc5b7a

Please sign in to comment.