Skip to content

Commit 6535e6e

Browse files
chore: test cli-core released version before triggering cli release (#293)
1 parent 0a4b8eb commit 6535e6e

File tree

2 files changed

+143
-1898
lines changed

2 files changed

+143
-1898
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,25 @@ jobs:
162162
TAG_NAME: ${{ steps.semantic-release.outputs.TAG_NAME }}
163163
RELEASE_BODY: ${{needs.update-api-specs.outputs.change-log}}
164164
REPO_NAME: ${{ github.repository }}
165+
post-build-checks:
166+
runs-on: ubuntu-latest
167+
needs: [ release ]
168+
steps:
169+
- name: Clone twilio-cli repo
170+
uses: actions/checkout@v4
171+
with:
172+
repository: '${{ github.repository_owner }}/twilio-cli'
173+
- name: Update cli-core version and run tests
174+
run: |
175+
node .github/scripts/update-cli-core-release-version.js
176+
make install
177+
make test
178+
env:
179+
REPO_NAME: ${{ github.repository_owner }}/twilio-cli
180+
CLI_CORE_TAG: ${{ needs.release.outputs.tag-name }}
165181
triggerCliWorkflow:
166182
runs-on: ubuntu-latest
167-
needs: [ update-api-specs, release]
183+
needs: [ update-api-specs, release, post-build-checks]
168184
steps:
169185
- name: Checkout cli-core repo
170186
uses: actions/checkout@v4

0 commit comments

Comments
 (0)