Skip to content
Snippets Groups Projects
Unverified Commit 1204554e authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

ci(sdk): [master] Prevent SDK from being upgraded unintentionally (#49883)

* Update workflow on master

* [DEBUG] Disable steps for testing

* Add alberto as a reviewer

* [DEBUG] modify the branch name for testing

* Revert "[DEBUG] modify the branch name for testing"

This reverts commit 7d5d8bf8.

* Revert "[DEBUG] Disable steps for testing"

This reverts commit a8662c9e.
parent b1ad9a1a
No related branches found
No related tags found
No related merge requests found
......@@ -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' }}
......
{
"name": "@metabase/embedding-sdk-react",
"version": "1.52.1",
"version": "0.52.1-nightly",
"description": "Metabase Embedding SDK for React",
"bin": "./dist/cli.js",
"repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment