Skip to content

Commit 18e56ea

Browse files
coyotte508Wauplin
andauthored
try upgrading corepack (huggingface#1170)
Co-authored-by: Lucain <[email protected]>
1 parent a12ca5b commit 18e56ea

13 files changed

+15
-15
lines changed

.github/workflows/agents-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/blob-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/dduf-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/gguf-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/hub-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/inference-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/jinja-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/languages-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
PR_REF: ${{ github.event.pull_request.head.ref }}
2929
SHA: ${{ github.sha }}
3030

31-
- run: corepack enable
31+
- run: npm install -g corepack@latest && corepack enable
3232

3333
- uses: actions/setup-node@v3
3434
with:

.github/workflows/space-header-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/tasks-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# remote: error: GH006: Protected branch update failed for refs/heads/main.
3131
# remote: error: Changes must be made through a pull request. Required status check "lint" is expected.
3232
token: ${{ secrets.BOT_ACCESS_TOKEN }}
33-
- run: corepack enable
33+
- run: npm install -g corepack@latest && corepack enable
3434
- uses: actions/setup-node@v3
3535
with:
3636
node-version: "20"

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "SINCE=$(git merge-base origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }})" >> $GITHUB_OUTPUT
2626
fi
2727
28-
- run: corepack enable
28+
- run: npm install -g corepack@latest && corepack enable
2929

3030
- uses: actions/setup-node@v3
3131
with:
@@ -65,7 +65,7 @@ jobs:
6565
echo "SINCE=$(git merge-base origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }})" >> $GITHUB_OUTPUT
6666
fi
6767
68-
- run: corepack enable
68+
- run: npm install -g corepack@latest && corepack enable
6969

7070
- uses: actions/setup-node@v3
7171
with:
@@ -93,7 +93,7 @@ jobs:
9393
steps:
9494
- uses: actions/checkout@v3
9595

96-
- run: corepack enable
96+
- run: npm install -g corepack@latest && corepack enable
9797

9898
- uses: actions/setup-node@v3
9999
with:

e2e/deno/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { whoAmI, listFiles } from "npm:@huggingface/hub@*";
44
const info = await whoAmI({ credentials: { accessToken: "hf_hub.js" }, hubUrl: "https://hub-ci.huggingface.co" });
55
console.log(info);
66

7-
for await (const file of listFiles({ credentials: { accessToken: "hf_hub.js" }, repo: "gpt2" })) {
7+
for await (const file of listFiles({ repo: "gpt2" })) {
88
console.log(file);
99
}
1010

0 commit comments

Comments
 (0)