0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

ci: add changelog to release (#1372)

This commit is contained in:
Gao Sun 2022-07-03 12:07:00 +08:00 committed by GitHub
parent 6c323403b3
commit 5d35531cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -80,6 +80,15 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2
- name: Extract changelog
run: |
git diff HEAD~1 HEAD --exit-code -- CHANGELOG.md | \
tail -n +5 | \
grep -E "^\+" | \
sed -E 's/^\+//' | \
cat -s \
> /tmp/changelog.txt
- name: Package
run: ./package.sh
@ -87,4 +96,5 @@ jobs:
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.BOT_PAT }}
body_path: /tmp/changelog.txt
files: /tmp/logto.tar.gz

View file

@ -2,7 +2,6 @@
"name": "@logto/schemas",
"version": "0.1.2-alpha.2",
"main": "lib/index.js",
"repository": "https://github.com/logto-io/schemas",
"author": "Silverhand Inc. <contact@silverhand.io>",
"license": "MPL-2.0",
"files": [