Skip to content

Commit 072f666

Browse files
authored
Update manual-release.yml
1 parent f521af0 commit 072f666

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

.github/workflows/manual-release.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,19 @@ jobs:
6565
NEW_VERSION=$(node -p "require('./packages/react-qr-code/package.json').version")
6666
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
6767
68-
- name: Debug Changesets
68+
- name: Create Branch and Commit
6969
run: |
70-
echo "Contents of .changeset directory:"
71-
ls -la .changeset/
72-
echo "Content of heavy-moose-rush.md:"
73-
cat .changeset/heavy-moose-rush.md
70+
git checkout -b release-v${{ env.NEW_VERSION }}
71+
git add .
72+
git commit -m "chore: release v${{ env.NEW_VERSION }}"
73+
git push origin release-v${{ env.NEW_VERSION }}
7474
75-
- name: Debug Git Status
76-
run: |
77-
git status
78-
git diff
79-
80-
- name: Create PR
81-
uses: changesets/action@v1
82-
with:
83-
commit: 'chore: release v${{ env.NEW_VERSION }}'
84-
title: 'New release v${{ env.NEW_VERSION }}'
85-
createGithubReleases: false
75+
- name: Create Pull Request
8676
env:
8777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
run: |
79+
gh pr create \
80+
--title "New release v${{ env.NEW_VERSION }}" \
81+
--body "This PR was created by the release workflow to create a new release." \
82+
--base main \
83+
--head release-v${{ env.NEW_VERSION }}

0 commit comments

Comments
 (0)