diff --git a/.github/workflows/new-repo.yml b/.github/workflows/new-repo.yml index d11de52..b9d38c3 100644 --- a/.github/workflows/new-repo.yml +++ b/.github/workflows/new-repo.yml @@ -31,10 +31,10 @@ jobs: echo -e "\nREPO_PROD_BRANCH=\"main\"\nREPO_TYPE=\"github\"\nREPO_ID=${{ github.event.repository.id }}\nREPO_NAME=${{ github.repository }}" >> apps/sanity/.env echo -e "\nREPO_PROD_BRANCH=\"main\"\nREPO_TYPE=\"github\"\nREPO_ID=${{ github.event.repository.id }}\nREPO_NAME=${{ github.repository }}" >> apps/storyblok/.env - # - name: Remove unnecessary scripts - # run: | - # jq 'del(.scripts["pull-stories"])' apps/storyblok/package.json > apps/storyblok/package.json.tmp - # mv apps/storyblok/package.json.tmp apps/storyblok/package.json + - name: Remove unnecessary scripts + run: | + jq 'del(.scripts["pull-stories"])' apps/storyblok/package.json > apps/storyblok/package.json.tmp + mv apps/storyblok/package.json.tmp apps/storyblok/package.json - name: Commit, push, and remove GitHub Actions workflow env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/apps/storyblok/CLI/sb.mjs b/apps/storyblok/CLI/sb.mjs index b4d990b..f1f522b 100644 --- a/apps/storyblok/CLI/sb.mjs +++ b/apps/storyblok/CLI/sb.mjs @@ -142,17 +142,16 @@ const main = async () => { "Successfully created Vercel production and preview deployments 🎉", ); - if (!process.env.DEBUG) { - spinner.start("Updating apps/storyblok/package.json ⏳"); - modifyFile("../package.json", "293915", spaceId); - spinner.succeed("apps/storyblok/package.json updated ✅"); - - spinner.start("Removing Sanity folder ⏳"); - execSync("rm -rf ../../sanity", { - stdio: "ignore", - }); - spinner.succeed("Sanity folder removed ✅"); - } + spinner.start("Updating apps/storyblok/package.json ⏳"); + modifyFile("../package.json", "293915", spaceId); + spinner.succeed("apps/storyblok/package.json updated ✅"); + + spinner.start("Removing unrelated files and scripts ⏳"); + execSync("rm -rf ../../sanity", { + stdio: "ignore", + }); + + spinner.succeed("Sanity folder removed ✅"); console.log( colorText(