diff --git a/.github/workflows/npm-release-latest-version.yml b/.github/workflows/npm-release-latest-version.yml index 9517d2271..9cd9cd205 100644 --- a/.github/workflows/npm-release-latest-version.yml +++ b/.github/workflows/npm-release-latest-version.yml @@ -24,7 +24,7 @@ jobs: run: npm ci - name: Exit pre next run: | - [[ -f .changeset/pre.json ]] && npx changeset pre exit + [[ -f .changeset/pre.json ]] && npx changeset pre exit || || echo 'not in pre mode, no need to exit' - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 diff --git a/.github/workflows/npm-release-next-version.yml b/.github/workflows/npm-release-next-version.yml index ad59da5ca..4bd7b38e4 100644 --- a/.github/workflows/npm-release-next-version.yml +++ b/.github/workflows/npm-release-next-version.yml @@ -24,7 +24,7 @@ jobs: run: npm ci - name: Enter pre next run: | - [[ ! -f .changeset/pre.json ]] && npx changeset pre enter next + [[ ! -f .changeset/pre.json ]] && npx changeset pre enter next || echo 'already in pre mode' - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1