From b895229569584e43ca9668f3477b57e75eeef05b Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Wed, 8 Nov 2023 15:49:01 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 57c4c53..d25481d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,16 +15,10 @@ jobs: with: node-version: '18' - # For some reason, the default registry MAY FAIL WITH ECONNRESET on GitHub Actions - - name: Setup Registry - continue-on-error: true + - name: Npm Install run: | cd worker - npm install --registry https://registry.npm.taobao.org - npm install wrangler@3.5.1 --registry https://registry.npm.taobao.org - - name: Log - run: | - cat `find /home/runner/.npm/_logs/` + npm install - name: Deploy Workers uses: cloudflare/wrangler-action@v3.1.0 @@ -43,11 +37,9 @@ jobs: with: node-version: '18' - # For some reason, the default registry MAY FAIL WITH ECONNRESET on GitHub Actions - - name: Setup Registry + - name: Npm Install run: | - npm install --registry https://registry.npm.taobao.org - npm install wrangler@3.5.1 --registry https://registry.npm.taobao.org + npm install - name: Deploy Pages uses: cloudflare/wrangler-action@v3.1.0