diff --git a/.changesets/fix-ci.json b/.changesets/fix-ci.json new file mode 100644 index 0000000..6bffb9a --- /dev/null +++ b/.changesets/fix-ci.json @@ -0,0 +1,13 @@ +{ + "branch": "fix/ci", + "bump": "patch", + "environments": [ + "production" + ], + "packages": [ + "@websublime/delta" + ], + "changes": [], + "created_at": "2026-04-16T17:29:10.360707Z", + "updated_at": "2026-04-16T17:29:10.362266Z" +} \ No newline at end of file diff --git a/.changesets/feat-ci.json b/.changesets/history/feat-ci.json similarity index 100% rename from .changesets/feat-ci.json rename to .changesets/history/feat-ci.json diff --git a/.githooks/pre-push b/.githooks/pre-push index 04bc3cf..372de60 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -6,6 +6,14 @@ # A changeset is any `.json` file directly inside `.changesets/`. Files # under `.changesets/history/` do NOT count — they represent already- # released changesets. The `.yaml` example file is ignored by the glob. +# +# Skipped automatically in CI: the release workflow archives changesets +# into history/ before pushing the version-bump commit, so enforcing the +# check there would deadlock the release. + +if [ "$CI" = "true" ] || [ -n "$GITHUB_ACTIONS" ]; then + exit 0 +fi CHANGESET_DIR=".changesets" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99b8e9c..6b6417c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: | workspace bump --execute --git-commit --git-tag --force - git push origin main --follow-tags + git push origin main --follow-tags --no-verify - name: Publish to npm if: steps.changesets.outputs.count > 0