From 85484bedc611338400efcd58072a3083a1bafd90 Mon Sep 17 00:00:00 2001 From: Henok Getachew Alemayehu Date: Fri, 23 Aug 2024 18:15:12 +0300 Subject: [PATCH] Lets try passing the branch directly from GH Actions --- .github/workflows/npm-publish-cht-deploy.yml | 2 +- scripts/deploy/.releaserc.json | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/npm-publish-cht-deploy.yml b/.github/workflows/npm-publish-cht-deploy.yml index 5edbf02453..ec28a85c12 100644 --- a/.github/workflows/npm-publish-cht-deploy.yml +++ b/.github/workflows/npm-publish-cht-deploy.yml @@ -35,4 +35,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release --config ./scripts/deploy/.releaserc.json + run: npx semantic-release --branches=${{ github.ref_name }} --config ./scripts/deploy/.releaserc.json diff --git a/scripts/deploy/.releaserc.json b/scripts/deploy/.releaserc.json index 7ee5a3be70..6a5735054d 100644 --- a/scripts/deploy/.releaserc.json +++ b/scripts/deploy/.releaserc.json @@ -1,11 +1,4 @@ { - "branches": [ - "master", - { - "name": "cht-deploy-publish", - "prerelease": true - } - ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator",