Skip to content

Commit 3ed9923

Browse files
committed
chore: copilot does not seem to know how to do this pipeline :)
1 parent c074f6a commit 3ed9923

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
# Only run on merged PRs or manual dispatch
2929
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true)
3030
outputs:
31-
releases_created: ${{ steps.release.outputs.releases_created }}
32-
tag_name: ${{ steps.release.outputs.tag_name }}
31+
releases_created: ${{ steps.release_auto.outputs.releases_created || steps.manual_release.outputs.releases_created }}
32+
tag_name: ${{ steps.release_auto.outputs.tag_name }}
3333
steps:
3434
- uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 0
3737

3838
- name: πŸš€ Create Release PR or Release (Automatic)
3939
if: github.event_name == 'pull_request'
40-
id: release
40+
id: release_auto
4141
uses: googleapis/release-please-action@v4
4242
with:
4343
config-file: release-please-config.json
@@ -49,20 +49,28 @@ jobs:
4949
with:
5050
node-version: '20'
5151

52-
- name: πŸš€ Create Manual Release
52+
- name: πŸš€ Create Manual Release PR
5353
if: github.event_name == 'workflow_dispatch'
5454
id: manual_release
5555
run: |
5656
npm install -g release-please
57+
58+
# Get current version from manifest
59+
CURRENT_VERSION=$(cat .release-please-manifest.json | jq -r '.Website')
60+
echo "Current version: $CURRENT_VERSION"
61+
62+
# Create release PR with specific version bump
5763
release-please release-pr \
64+
--repo-url="https://github.com/${{ github.repository }}" \
5865
--config-file=release-please-config.json \
5966
--manifest-file=.release-please-manifest.json \
60-
--release-as=${{ github.event.inputs.release_type }}
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
--release-as=${{ github.event.inputs.release_type }} \
68+
--token=${{ secrets.GITHUB_TOKEN }}
69+
70+
echo "releases_created=true" >> $GITHUB_OUTPUT
6371
64-
- name: Set outputs for manual release
72+
- name: πŸ“ Manual Release Summary
6573
if: github.event_name == 'workflow_dispatch'
6674
run: |
67-
echo "releases_created=true" >> $GITHUB_OUTPUT
68-
echo "Manual release PR created with type: ${{ github.event.inputs.release_type }}"
75+
echo "βœ… Manual release PR created with type: ${{ github.event.inputs.release_type }}"
76+
echo "πŸ” Check the Pull Requests tab for the release PR to review and merge."

0 commit comments

Comments
Β (0)