From da92cb4d3f609b17532c07ff20bb871185bcc8ab Mon Sep 17 00:00:00 2001 From: Luke Sanderson Date: Thu, 9 Oct 2025 10:01:15 +0100 Subject: [PATCH 1/2] Add license files to github release --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5011de9..f160fc1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -186,7 +186,12 @@ jobs: with: tag_name: v${{ needs.update-version.outputs.version }} name: Release v${{ needs.update-version.outputs.version }} - files: artifacts/bindings-*/*.node + files: | + artifacts/bindings-*/*.node + index.js + index.d.ts + LICENSE + LICENSE-3RD-PARTY.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to NPM From 4ba200ec94b47d9383d8f020fff381bd2efd28cf Mon Sep 17 00:00:00 2001 From: Luke Sanderson Date: Thu, 9 Oct 2025 10:35:15 +0100 Subject: [PATCH 2/2] Add release notes to the github release body --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f160fc1..4c82d37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -181,17 +181,27 @@ jobs: - name: List packages run: ls -R ./npm shell: bash + - name: Generate release notes + uses: orhun/git-cliff-action@v4 + with: + config: cliff.toml + args: --tag v${{ needs.update-version.outputs.version }} --unreleased + env: + OUTPUT: RELEASE_NOTES.md + GITHUB_REPO: ${{ github.repository }} - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: tag_name: v${{ needs.update-version.outputs.version }} name: Release v${{ needs.update-version.outputs.version }} + body_path: RELEASE_NOTES.md files: | artifacts/bindings-*/*.node index.js index.d.ts LICENSE LICENSE-3RD-PARTY.txt + CHANGELOG.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to NPM