Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 1 #254

Merged
merged 11 commits into from
Nov 22, 2024
10 changes: 5 additions & 5 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:

BRANCH_NAME="${{ needs.extract_branch_name.outputs.branch_name }}"
if [[ "$BRANCH_NAME" == "v${{ env.VERSION_1_1 }}" || "$BRANCH_NAME" == "dev_v${{ env.VERSION_1_1 }}" ]]; then
get_latest_version "${{ env.VERSION_1_1 }}" "bonnie37" "CORE_SDK_LATEST_VERSION"
get_latest_version "${{ env.VERSION_1_1 }}" "@bonnie37/core-sdk" "CORE_SDK_LATEST_VERSION"
get_latest_version "${{ env.VERSION_1_1 }}" "bonnie-react" "REACT_SDK_LATEST_VERSION"
elif [[ "$BRANCH_NAME" == "${{ env.MAIN }}" || "$BRANCH_NAME" == ${{ env.DEV }} ]]; then
get_latest_version "${{ env.VERSION_1_2 }}" "bonnie37" "CORE_SDK_LATEST_VERSION"
get_latest_version "${{ env.VERSION_1_2 }}" "@bonnie37/core-sdk" "CORE_SDK_LATEST_VERSION"
get_latest_version "${{ env.VERSION_1_2 }}" "bonnie-react" "REACT_SDK_LATEST_VERSION"
fi
# Fail if the version including react-sdk and core-sdk does not match the branch strategy
Expand Down Expand Up @@ -180,10 +180,10 @@ jobs:

git fetch --tags
if [[ "$BRANCH_NAME" == "v${{ env.VERSION_1_1 }}" ]]; then
CORE_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "bonnie37@1.1|core-sdk@1.1" | tail -n1)
CORE_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "@bonnie37/core-sdk@1.1|core-sdk@1.1" | tail -n1)
REACT_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "bonnie-react@1.1|react-sdk@1.1" | tail -n1)
else
CORE_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "bonnie37@1.2|core-sdk@1.2" | tail -n1)
CORE_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "@bonnie37/core-sdk@1.2|core-sdk@1.2" | tail -n1)
REACT_SDK_LATEST_TAG=$(git tag --sort=creatordate | grep -E "bonnie-react@1.2|react-sdk@1.2" | tail -n1)
fi
echo "CORE_SDK_LATEST_TAG=$CORE_SDK_LATEST_TAG" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:
if: ${{ github.event_name == 'push' && needs.check_if_version_is_valid_for_branch.outputs.IS_PUBLISH_CORE_SDK == 'true'}}
uses: ./.github/workflows/reusable-create-release.yml
with:
tag_name: bonnie37@${{ needs.print_version_to_publish.outputs.core_sdk_version_to_be_published }}
tag_name: \@bonnie37/core-sdk@${{ needs.print_version_to_publish.outputs.core_sdk_version_to_be_published }}
is_core_sdk: true
last_tag: ${{ needs.fetch_last_tag.outputs.CORE_SDK_LATEST_TAG }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: "Build Changelog"
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
uses: mikepenz/release-changelog-builder-action@a57c1b7c90e56d9c8b26a6ed5d1eed159369e117
with:
configuration: ${{ env.config_file }}
toTag: ${{ inputs.tag_name}}
Expand All @@ -61,7 +61,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: mikepenz/action-gh-release@v1
uses: mikepenz/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974
with:
body: ${{steps.github_release.outputs.changelog}}
tag_name: ${{ inputs.tag_name }}
Expand Down
8 changes: 6 additions & 2 deletions packages/core-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "bonnie37",
"version": "1.2.38",
"name": "@bonnie37/core-sdk",
"version": "1.2.36",
"main": "dist/bonnie37.cjs.js",
"module": "dist/bonnie37.esm.js",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"exports": {
".": {
"module": "./dist/bonnie37.esm.js",
Expand Down
Loading