Skip to content

Commit ee57c3e

Browse files
authored
Added rc version bump to prerelease flow (#57)
1 parent 7369c24 commit ee57c3e

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/prerelease.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3131
with:
3232
fetch-depth: 0 # full history for yarn version
33+
token: ${{ secrets.USER_GITHUB_TOKEN }}
3334

3435
- name: Setup Node with trusted publishing
3536
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -44,6 +45,25 @@ jobs:
4445
- run: yarn build
4546
- run: yarn test
4647

48+
# ---- BUMP VERSION ----
49+
50+
- name: Configure Git
51+
run: |
52+
git config --global user.email "${{ secrets.GH_EMAIL }}"
53+
git config --global user.name "${{ secrets.GH_USER }}"
54+
55+
- name: Bump RC version
56+
if: ${{ github.event.inputs.dry_run == 'false' }}
57+
working-directory: packages/interact
58+
run: yarn version prerelease --preid rc
59+
60+
- name: Commit and push version bump
61+
if: ${{ github.event.inputs.dry_run == 'false' }}
62+
run: |
63+
git add .
64+
git commit -m "chore: bump @wix/interact RC version [skip ci]"
65+
git push
66+
4767
# ---- PUBLISH WITH TRUSTED PUBLISHING ----
4868

4969
- name: npm publish @wix/interact (trusted)

0 commit comments

Comments
 (0)