diff --git a/.github/workflows/npm-publish-cht-deploy.yml b/.github/workflows/npm-publish-cht-deploy.yml index ec28a85c12e..8b7b4201074 100644 --- a/.github/workflows/npm-publish-cht-deploy.yml +++ b/.github/workflows/npm-publish-cht-deploy.yml @@ -2,8 +2,6 @@ name: Publish cht-deploy to npm on: push: - branches: - - '**' paths: - 'scripts/deploy/**' @@ -35,4 +33,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release --branches=${{ github.ref_name }} --config ./scripts/deploy/.releaserc.json + run: npx semantic-release --config ./scripts/deploy/.releaserc.json diff --git a/scripts/deploy/.releaserc.json b/scripts/deploy/.releaserc.json index 6a5735054d5..ab6dc5a0f9f 100644 --- a/scripts/deploy/.releaserc.json +++ b/scripts/deploy/.releaserc.json @@ -1,4 +1,11 @@ { + "branches": [ + "master", + { + "name": "*", + "prerelease": "${name}" + } + ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator",