diff --git a/.github/workflows/release-embedding-sdk.yml b/.github/workflows/release-embedding-sdk.yml index 4857d1585e910ace204a19b802dc247c4d01ac85..174ef3381bd77e03256f12aba8975a55cc7ea7e0 100644 --- a/.github/workflows/release-embedding-sdk.yml +++ b/.github/workflows/release-embedding-sdk.yml @@ -59,11 +59,16 @@ jobs: result-encoding: string script: | const currentVersion = "${{ steps.current-sdk-version.outputs.sdk_current_version }}"; - const versionParts = currentVersion.split("."); + const [currentVersionWithoutSuffix, suffix] = currentVersion.split("-"); + const versionParts = currentVersionWithoutSuffix.split("."); versionParts[versionParts.length - 1] = parseInt(versionParts.at(-1)) + 1; const newVersion = versionParts.join("."); - return newVersion + if (!suffix) { + return newVersion; + } + + return `${newVersion}-${suffix}` - name: Append workflow summary run: | @@ -222,7 +227,7 @@ jobs: - name: Edit PR adding useful information (using Metabase bot app) run: | - gh pr edit --add-reviewer @metabase/embedding --add-label no-backport + gh pr edit --add-reviewer @metabase/embedding,albertoperdomo --add-label no-backport env: GH_TOKEN: ${{ steps.app-token.outputs.token }} @@ -249,7 +254,7 @@ jobs: run: | echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_RELEASE_TOKEN }} > .npmrc # Please keep the value in sync with `inputs.branch`'s release branch - npm publish --tag ${{fromJson('{"master": "canary", "release-x.51.x": "51-stable"}')[inputs.branch]}} + npm publish --tag ${{fromJson('{"master": "nightly", "release-x.51.x": "51-stable"}')[inputs.branch]}} - name: Add `latest` tag to the latest release branch (`release-x.51.x`) deployment if: ${{ inputs.branch == 'release-x.51.x' }} diff --git a/enterprise/frontend/src/embedding-sdk/package.template.json b/enterprise/frontend/src/embedding-sdk/package.template.json index d2e6d5dfeff00bc10ccdc1804117074511717e15..5f8d005e2323958c5c5ead8a0e632754e80acf6d 100644 --- a/enterprise/frontend/src/embedding-sdk/package.template.json +++ b/enterprise/frontend/src/embedding-sdk/package.template.json @@ -1,6 +1,6 @@ { "name": "@metabase/embedding-sdk-react", - "version": "1.51.4", + "version": "0.51.4", "description": "Metabase Embedding SDK for React", "bin": "./dist/cli.js", "repository": {