From 5cef9ad52c1e3b00abc56d5eeaed70be04995461 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Wed, 3 Nov 2021 08:39:59 +0100 Subject: [PATCH] fix: use yarn in CI workflows (#10) --- .../package-manager/.github/workflows/js.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/package-manager/.github/workflows/js.yml b/extensions/package-manager/.github/workflows/js.yml index 430886795..84e1aa42c 100755 --- a/extensions/package-manager/.github/workflows/js.yml +++ b/extensions/package-manager/.github/workflows/js.yml @@ -18,15 +18,15 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - cache-dependency-path: js/package-lock.json + cache: "yarn" + cache-dependency-path: js/yarn.lock - name: Install JS dependencies - run: npm ci + run: yarn install --frozen-lockfile working-directory: ./js - name: Check JS formatting - run: npm run format-check + run: yarn run format-check working-directory: ./js build-prod: @@ -46,8 +46,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - cache-dependency-path: js/package-lock.json + cache: "yarn" + cache-dependency-path: js/yarn.lock # Our action will install npm, cd into `./js`, run `npm run build` and # `npm run build-typings`, then commit and upload any changes @@ -76,8 +76,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - cache-dependency-path: js/package-lock.json + cache: "yarn" + cache-dependency-path: js/yarn.lock # Our action will install npm, cd into `./js`, run `npm run build` and # `npm run build-typings`, then commit and upload any changes