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:
parent
6c323403b3
commit
5d35531cba
2 changed files with 10 additions and 1 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Add table
Reference in a new issue