Skip to content

Commit

Permalink
chore:release
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Mar 26, 2024
1 parent 5d5940e commit 579c8de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Get version and name from version.json
- name: Get version from version.json
id: get_info
run: |
echo "version=$(node -p "require('./version.json').version")" >> $GITHUB_ENV
echo "name=$(node -p "require('./version.json').name")" >> $GITHUB_ENV
- name: Get changelog
id: get_changelog
run: |
echo "changelog=$(sed -n -e '/## '${version} -e '/##/p' CHANGELOG.md | sed '1d;$d')" >> $GITHUB_ENV
echo "changelog=$(sed -n '/## '${version}'/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV
- name: Create Release
id: create_release
Expand Down
1 change: 0 additions & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"name": "TV",
"version": "1.0.0"
}

0 comments on commit 579c8de

Please sign in to comment.