fix: use yarn in CI workflows (#10)

This commit is contained in:
David Wheatley 2021-11-03 08:39:59 +01:00 committed by GitHub
parent a144c026f3
commit 5cef9ad52c

View File

@ -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