From 3bd9e5a91ad0c574350aef45688af96983c1e81a Mon Sep 17 00:00:00 2001 From: Praveen Yadav Date: Wed, 4 Oct 2023 08:45:22 +0530 Subject: [PATCH] fix: remove changelog branch from ci (#372) * fix: remove changelog branch from ci * fix: release on tag only --- .github/workflows/{sdk.yml => js-sdk.yml} | 7 ++++--- sdks/js/packages/core/.releaserc | 24 ++--------------------- sdks/js/packages/core/package.json | 6 ------ 3 files changed, 6 insertions(+), 31 deletions(-) rename .github/workflows/{sdk.yml => js-sdk.yml} (93%) diff --git a/.github/workflows/sdk.yml b/.github/workflows/js-sdk.yml similarity index 93% rename from .github/workflows/sdk.yml rename to .github/workflows/js-sdk.yml index 7e7716afd..392b480d1 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/js-sdk.yml @@ -1,9 +1,10 @@ -name: sdk +name: js-sdk on: push: - branches: - - main + tags: + - "v*.*.*" + workflow_dispatch: jobs: release: diff --git a/sdks/js/packages/core/.releaserc b/sdks/js/packages/core/.releaserc index 1842f6f99..56cac2887 100644 --- a/sdks/js/packages/core/.releaserc +++ b/sdks/js/packages/core/.releaserc @@ -1,29 +1,9 @@ { "debug": true, "branches": [ - "main", - "changelog" + "main" ], "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/npm", - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], - [ - "@semantic-release/git", - { - "assets": [ - "package.json", - "CHANGELOG.md" - ], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - } - ], - "@semantic-release/github" + "@semantic-release/npm" ] } diff --git a/sdks/js/packages/core/package.json b/sdks/js/packages/core/package.json index 92a1c4d39..0a31f6fd7 100644 --- a/sdks/js/packages/core/package.json +++ b/sdks/js/packages/core/package.json @@ -51,13 +51,7 @@ "devDependencies": { "@radix-ui/react-icons": "^1.3.0", "@raystack/frontier-tsconfig": "workspace:^", - "@semantic-release/changelog": "^6.0.3", - "@semantic-release/commit-analyzer": "^11.0.0", - "@semantic-release/exec": "^6.0.3", - "@semantic-release/git": "^10.0.1", - "@semantic-release/github": "^9.2.1", "@semantic-release/npm": "^11.0.0", - "@semantic-release/release-notes-generator": "^12.0.0", "@size-limit/preset-small-lib": "^8.2.6", "@tanstack/react-table": "^8.10.1", "@types/node": "^20.6.3",