From e778066ada2b1440e3a77d4db2cc96422eadf7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kiner-tang=28=E6=96=87=E8=BE=89=29?= <1127031143@qq.com> Date: Tue, 21 Nov 2023 15:27:33 +0800 Subject: [PATCH] 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 --- .../trigger-argos-with-whitelist-users.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trigger-argos-with-whitelist-users.yml b/.github/workflows/trigger-argos-with-whitelist-users.yml index 3c310afaf4a8..126f0dd67628 100644 --- a/.github/workflows/trigger-argos-with-whitelist-users.yml +++ b/.github/workflows/trigger-argos-with-whitelist-users.yml @@ -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