Skip to content

Commit

Permalink
[Fix] SDK Versioning strategy update (#487)
Browse files Browse the repository at this point in the history
* [Fix] SDK Versioning strategy update

* Fix global behaviour
  • Loading branch information
brapoprod authored Jul 19, 2024
1 parent 688aea4 commit e1b8ebe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,8 @@ jobs:
run: yarn cover
- name: run readmeUpdater
run: yarn make-badges
- name: bump version
uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_SECRET }}
with:
minor-wording: "[Breaking],[BREAKING]"
major-wording: "[MAJOR],[major]"
patch-wording: "[Fix],[FIX],[Feature],[FEATURE]"
skip-commit: "true"
skip-tag: "true"
- name: bump build version
run: yarn version --prerelease

# execute local js script
- name: execute local js script
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/publish-release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
ref=${{ github.ref }}
# Remove the refs/tags/ prefix
tag=${ref#refs/tags/}
node cicd.js sdk,connectors yarn publish --tag $tag --tag latest
stripped_tag=${tag%-*}
node cicd.js sdk,connectors yarn version --new-version $stripped_tag
node cicd.js sdk,connectors yarn publish --tag $stripped_tag --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: get new npm version
Expand Down Expand Up @@ -69,3 +71,17 @@ jobs:
with:
inlineScript: |
az storage blob upload-batch -d sdk -s packages/actions/cdn/ --connection-string "${{ secrets.AZURE_CDN_STUDIO_PRD_CONNECTION_STRING }}" --overwrite true
bump:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
needs: build
steps:
- name: bump minor version after release
run: yarn version --preminor
- name: align versions
run: node ./.github/scripts/replicate-version.js
- name: execute commit script
run: node ./.github/scripts/commit.js

0 comments on commit e1b8ebe

Please sign in to comment.