File tree Expand file tree Collapse file tree 1 file changed +12
-22
lines changed
Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Original file line number Diff line number Diff line change 5353 echo "New production version: $NEW_VERSION"
5454 echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
5555
56- git stash
57-
58- build-and-publish-sdk :
59- needs : prepare-and-commit-prod
60- uses : ./.github/workflows/sdk-release-build.yml
61- with :
62- new-version : ${{ needs.prepare-and-commit-prod.outputs.new_version }}
63- artifact-name : updated-sdk-package
64- checkout-ref : ${{ github.sha }}
65- env-overrides : ' {"NEXT_PUBLIC_CODEBUFF_BACKEND_URL": "manicode-backend.onrender.com", "NEXT_PUBLIC_CB_ENVIRONMENT": "prod"}'
66- secrets : inherit
67-
68- push-to-git :
69- runs-on : ubuntu-latest
70- needs : build-and-publish-sdk
71- outputs :
72- new_version : ${{ steps.bump_version.outputs.new_version }}
73- steps :
74- - uses : actions/checkout@v4
75- with :
76- token : ${{ secrets.GITHUB_TOKEN }}
77-
7856 - uses : ./.github/actions/setup-project
7957 - name : Configure git
8058 run : |
8361
8462 - name : Commit and push version bump
8563 run : |
64+ git stash
8665 git pull --rebase origin main
8766 git stash pop
8867 git add sdk/package.json
8968 git commit -m "Bump SDK version to ${{ steps.bump_version.outputs.new_version }}"
9069 git push
70+
71+ build-and-publish-sdk :
72+ needs : prepare-and-commit-prod
73+ uses : ./.github/workflows/sdk-release-build.yml
74+ with :
75+ new-version : ${{ needs.prepare-and-commit-prod.outputs.new_version }}
76+ artifact-name : updated-sdk-package
77+ checkout-ref : ${{ github.sha }}
78+ env-overrides : ' {"NEXT_PUBLIC_CODEBUFF_BACKEND_URL": "manicode-backend.onrender.com", "NEXT_PUBLIC_CB_ENVIRONMENT": "prod"}'
79+ secrets : inherit
80+
You can’t perform that action at this time.
0 commit comments