try to fix
This commit is contained in:
12
.github/workflows/deploy-1000h-portal.yml
vendored
12
.github/workflows/deploy-1000h-portal.yml
vendored
@@ -25,19 +25,27 @@ jobs:
|
||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
|
||||
|
||||
- name: Setup node env
|
||||
uses: actions/setup-node@master
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
# Debugging installation issues
|
||||
- name: Show npm logs if install fails
|
||||
if: failure()
|
||||
run: cat /home/runner/.npm/_logs/* || true
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Build
|
||||
run: yarn portal:generate
|
||||
|
||||
- name: Install Wrangler manually (workaround)
|
||||
run: npm install -g wrangler@3.81.0
|
||||
|
||||
- name: Deploy
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user