diff --git a/.github/workflows/npm-publish-cht-deploy.yml b/.github/workflows/npm-publish-cht-deploy.yml index 5edbf024534..ec28a85c12e 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 7ee5a3be704..6a5735054d5 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",