chore: use npm ci instead of yarn in ci (#45980)

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci

* chore: use npm ci instead of yarn in ci
This commit is contained in:
kiner-tang(文辉) 2023-11-21 15:27:33 +08:00 committed by GitHub
parent 4baef311f8
commit e778066ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,9 +40,17 @@ jobs:
echo "whitelisted=false" >> $GITHUB_OUTPUT
fi
- name: install dependencies
if: ${{ steps.check_user.outputs.whitelisted == 'true' }}
run: yarn
- name: cache package-lock.json
uses: actions/cache@v3
with:
path: package-temp-dir
key: lock-${{ github.sha }}
- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
- name: install
run: npm install
- name: Build dist file
id: build