Skip to content

Commit 7f31225

Browse files
authored
checkbox to bypass dep checks during publish checks (#1432)
Eg sometimes it's not important to have up-to-date `@huggingface/tasks` requirement
1 parent 8f9ed69 commit 7f31225

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/gguf-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
bypass_deps_check:
15+
type: boolean
16+
description: "Bypass dependency checking"
17+
default: false
1418

1519
concurrency:
1620
group: "push-to-main"
@@ -50,7 +54,8 @@ jobs:
5054
git commit . -m "🔖 @huggingface/gguf $BUMPED_VERSION"
5155
git tag "gguf-v$BUMPED_VERSION"
5256
53-
- name: "Check Deps are published before publishing this package"
57+
- if: ${{ !github.event.inputs.bypass_deps_check }}
58+
name: "Check Deps are published before publishing this package"
5459
run: pnpm -w check-deps tasks
5560

5661
- run: pnpm publish --no-git-checks .

.github/workflows/hub-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
bypass_deps_check:
15+
type: boolean
16+
description: "Bypass dependency checking"
17+
default: false
1418

1519
concurrency:
1620
group: "push-to-main"
@@ -53,7 +57,8 @@ jobs:
5357
git commit -m "🔖 @huggingface/hub $BUMPED_VERSION"
5458
git tag "hub-v$BUMPED_VERSION"
5559
56-
- name: "Check Deps are published before publishing this package"
60+
- if: ${{ !github.event.inputs.bypass_deps_check }}
61+
name: "Check Deps are published before publishing this package"
5762
run: pnpm -w check-deps tasks
5863

5964
- run: pnpm publish --no-git-checks .

.github/workflows/inference-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
bypass_deps_check:
15+
type: boolean
16+
description: "Bypass dependency checking"
17+
default: false
1418

1519
concurrency:
1620
group: "push-to-main"
@@ -53,7 +57,8 @@ jobs:
5357
git commit -m "🔖 @huggingface/inference $BUMPED_VERSION"
5458
git tag "inference-v$BUMPED_VERSION"
5559
56-
- name: "Check Deps are published before publishing this package"
60+
- if: ${{ !github.event.inputs.bypass_deps_check }}
61+
name: "Check Deps are published before publishing this package"
5762
run: pnpm -w check-deps tasks
5863

5964
- run: pnpm publish --no-git-checks .

.github/workflows/mcp-client-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
bypass_deps_check:
15+
type: boolean
16+
description: "Bypass dependency checking"
17+
default: false
1418

1519
concurrency:
1620
group: "push-to-main"
@@ -49,7 +53,8 @@ jobs:
4953
git tag "mcp-client-v$BUMPED_VERSION"
5054
5155
# Add checks for dependencies if needed, similar to hub-publish.yml
52-
- name: "Check Deps are published before publishing this package"
56+
- if: ${{ !github.event.inputs.bypass_deps_check }}
57+
name: "Check Deps are published before publishing this package"
5358
run: pnpm -w check-deps inference && pnpm -w check-deps tasks
5459

5560
- run: pnpm publish --no-git-checks .

0 commit comments

Comments
 (0)