Skip to content

Commit 9ed4142

Browse files
committed
ci: rename bump version
1 parent 24f6aa9 commit 9ed4142

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/cd.yml renamed to .github/workflows/bump_version.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CD
1+
name: Bump Version
22

33
permissions:
44
contents: write
@@ -65,16 +65,12 @@ jobs:
6565
fi
6666
6767

68-
- name: Bump Version (no tag)
69-
if: github.event.inputs.workspace != '@segment/analytics-react-native'
68+
- name: Bump Version
7069
run: yarn workspace ${{ env.WORKSPACE }} version --${{ env.VERSION }} --no-git-tag-version
71-
72-
- name: Bump Version (tag)
73-
if: github.event.inputs.workspace == '@segment/analytics-react-native'
74-
run: yarn workspace ${{ env.WORKSPACE }} version --${{ env.VERSION }}
7570

76-
- name: Create Pull Request to Merge to
71+
- name: Create Pull Request
7772
uses: peter-evans/create-pull-request@v3
7873
with:
7974
commit-message: 'chore: release ${{env.WORKSPACE}} ${{env.VERSION}}'
75+
title: 'chore: release ${{env.WORKSPACE}} ${{env.VERSION}}'
8076
delete-branch: true

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish
22

33
on:
44
push:
5+
branches:
6+
- 'cdActions'
57
tags:
68
- 'v*'
79
paths:
@@ -33,7 +35,7 @@ jobs:
3335
run: |
3436
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
3537
yarn install --frozen-lockfile
36-
yarn build --frozen-lockfile
38+
yarn build
3739
env:
3840
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3941

0 commit comments

Comments
 (0)