Skip to content

Commit

Permalink
refactor: enhance manual release workflow with direct release creation
Browse files Browse the repository at this point in the history
Co-Authored-By: ben <ben@prologe.io>
  • Loading branch information
devin-ai-integration[bot] and benjaminshafii committed Dec 26, 2024
1 parent 0806b9b commit 2f96502
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,40 @@ jobs:
run: |
cd packages/plugin
pnpm version ${{ github.event.inputs.increment }} --no-git-tag-version
- name: Build plugin
run: pnpm --filter "./packages/plugin" build

- name: Update manifest and versions
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd packages/plugin
pnpm run version
version=$(node -p "require('./packages/plugin/manifest.json').version")
# Create a temporary directory for release files
mkdir release
cp packages/plugin/dist/main.js release/
cp packages/plugin/dist/styles.css release/
cp packages/plugin/manifest.json release/
# Create release notes
echo "## Changes in this release" > release/notes.md
echo "Version bump: ${{ github.event.inputs.increment }}" >> release/notes.md
# Create the release
gh release create "$version" \
--title="Version $version" \
--notes-file=release/notes.md \
--draft=false \
release/main.js \
release/styles.css \
release/manifest.json
- name: Create and push tag
run: |
cd packages/plugin
node commit.js
version=$(node -p "require('./manifest.json').version")
git tag -a "$version" -m "Release $version"
git push origin "$version"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2f96502

Please sign in to comment.