mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -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
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2
|
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
|
- name: Package
|
||||||
run: ./package.sh
|
run: ./package.sh
|
||||||
|
|
||||||
|
@ -87,4 +96,5 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_PAT }}
|
token: ${{ secrets.BOT_PAT }}
|
||||||
|
body_path: /tmp/changelog.txt
|
||||||
files: /tmp/logto.tar.gz
|
files: /tmp/logto.tar.gz
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"name": "@logto/schemas",
|
"name": "@logto/schemas",
|
||||||
"version": "0.1.2-alpha.2",
|
"version": "0.1.2-alpha.2",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"repository": "https://github.com/logto-io/schemas",
|
|
||||||
"author": "Silverhand Inc. <contact@silverhand.io>",
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Loading…
Add table
Reference in a new issue