From 72c3464d4bbfb588651c659254f4babe74d4db3f Mon Sep 17 00:00:00 2001 From: Kai Mallea Date: Tue, 9 Mar 2021 01:52:29 -0500 Subject: [PATCH] ci(semantic-release): add branch config to package.json --- .github/workflows/test.yml | 2 +- package.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c46622d1..1d47a13f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,4 +33,4 @@ jobs: - name: Run tests run: npm test - name: Release Dry-run - run: npx semantic-release --dry-run + run: npx semantic-release --branches ${{ env.GITHUB_HEAD_REF }} --dry-run diff --git a/package.json b/package.json index 471a56c2..32e39011 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,11 @@ "extends": [ "@commitlint/config-conventional" ] + }, + "release": { + "branches": [ + "main", + "next" + ] } }