Fix release note files on release tracks
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
9
.github/workflows/release-npm-n8n-node.yaml
vendored
9
.github/workflows/release-npm-n8n-node.yaml
vendored
@@ -62,6 +62,13 @@ jobs:
|
||||
- uses: "actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32" # v4
|
||||
with:
|
||||
subject-path: "packages/n8n-node/dist/**"
|
||||
- name: "Extract release notes"
|
||||
run: |
|
||||
VERSION="${GITHUB_REF_NAME##*/v}"
|
||||
awk -v ver="$VERSION" '
|
||||
/^## \[/ { if (found) exit; if ($0 ~ "\\[" ver "\\]") found=1 }
|
||||
found
|
||||
' packages/n8n-node/CHANGELOG.md > release-notes.md
|
||||
- name: "Create GitHub release"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -75,7 +82,7 @@ jobs:
|
||||
|
||||
gh release create "${GITHUB_REF_NAME}" \
|
||||
--title "${GITHUB_REF_NAME}" \
|
||||
--notes-file packages/n8n-node/CHANGELOG.md \
|
||||
--notes-file release-notes.md \
|
||||
$PRERELEASE_FLAG \
|
||||
packages/n8n-node/sbom.json packages/n8n-node/checksums.txt
|
||||
- uses: "actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" # v7
|
||||
|
||||
Reference in New Issue
Block a user