mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 09:03:26 +00:00
fix(actions): Use npm instead of yarn
This commit is contained in:
12
.github/workflows/cloudflare.yml
vendored
12
.github/workflows/cloudflare.yml
vendored
@@ -15,25 +15,25 @@ jobs:
|
||||
node: [ 14 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
|
||||
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
|
||||
|
||||
- name: Install Dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: yarn
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
run: npm run build
|
||||
env:
|
||||
NITRO_PRESET: cloudflare
|
||||
|
||||
|
Reference in New Issue
Block a user