Skip to content

Commit b986670

Browse files
committed
Generate (markdown) release notes
1 parent b9d0b83 commit b986670

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,17 @@ jobs:
9090
run: ./populate-npm-workspace.sh
9191
- name: Create npm workspace tarball
9292
run: tar -vcaf npm-workspace.tar.xz -C npm .
93+
- name: Generate release notes
94+
run: ./generate-release-notes.sh
9395
- name: Create GitHub release for tag
9496
if: startsWith(github.ref, 'refs/tags/v')
9597
uses: ncipollo/release-action@v1
9698
with:
9799
artifacts: npm-workspace.tar.xz
98100
artifactContentType: application/x-xz
99-
bodyFile: versions.properties
101+
bodyFile: release-notes.md
100102
prerelease: ${{ contains(github.ref, '-rc') }}
101103
makeLatest: ${{ !contains(github.ref, '-rc') }}
102104
- name: Publish npm packages
103105
if: startsWith(github.ref, 'refs/tags/v')
104-
run: cd npm && npm publish --workspaces --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }} --dry-run
106+
run: cd npm && npm publish --workspaces --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ npm/*/*
88
!npm/*/package.json
99
!npm/dev-wasm32/THIRD-PARTY-NOTICES.md
1010
npm/img-sharp-libvips-*.tgz
11+
release-notes.md

generate-release-notes.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
{
5+
echo 'Dependency|Version';
6+
echo '---|---';
7+
sed 's/=/|/' versions.properties | sed 's/^VERSION_//' | tr 'A-Z_' 'a-z-';
8+
} >release-notes.md

0 commit comments

Comments
 (0)