Skip to content

Commit

Permalink
Merge pull request elizaOS#846 from cygaar/update_release
Browse files Browse the repository at this point in the history
fix: run release workflow after a github release is created
  • Loading branch information
cygaar authored Dec 5, 2024
2 parents 5725100 + cff4ac1 commit 5608d1a
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release

on:
release:
types: [created]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -57,28 +59,3 @@ jobs:
npx lerna publish from-package --yes --dist-tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get Version Tag
id: get_tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT

- name: Generate Release Body
id: release_body
run: |
if [ -f CHANGELOG.md ]; then
echo "body=$(cat CHANGELOG.md)" >> $GITHUB_OUTPUT
else
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
fi
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
with:
tag_name: ${{ steps.get_tag.outputs.TAG }}
release_name: Release
body_path: CHANGELOG.md
draft: false
prerelease: false

0 comments on commit 5608d1a

Please sign in to comment.