From 7ff6e7cac1e383cb345fd65510a9823a616102e2 Mon Sep 17 00:00:00 2001 From: Jonathan Carle Date: Tue, 19 Dec 2023 17:44:19 +0100 Subject: [PATCH] remove pre.json file before snapshot release --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a710bd13a..93e2c80fc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,5 +49,7 @@ jobs: - name: 📸 Snapshot and Publish if: ${{ github.ref != 'refs/heads/main' }} run: | + # [Snapshot release fails if repository is in pre-release mode](https://github.com/changesets/changesets/issues/1195) + rm -f .changeset/pre.json npx changeset version --snapshot npx changeset publish --tag snapshot