Skip to content

Commit ac75f30

Browse files
Update release.yml
1 parent 23805ec commit ac75f30

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ jobs:
104104
npm install -g npm
105105
yarn install --immutable
106106
107-
- name: version - Release
108-
if: ${{ github.event.inputs.snapshot == 'false' }}
107+
- name: Setup Git User
109108
run: |
110109
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
111110
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
112111
112+
- name: version - Release
113+
if: ${{ github.event.inputs.snapshot == 'false' }}
114+
run: |
113115
${GITHUB_WORKSPACE}/node_modules/.bin/lerna version ${{ github.event.inputs.release_type }} \
114116
${{ (github.event.inputs.prerelease == 'true' && '--conventional-prerelease') || '--conventional-graduate' }} \
115117
--create-release github
@@ -127,6 +129,9 @@ jobs:
127129
--no-git-tag-version \
128130
--allow-branch ${{ github.ref_name }}
129131
132+
git add .
133+
git commit -m "chore: release snapshot version"
134+
130135
- name: build
131136
run: yarn build
132137

0 commit comments

Comments
 (0)