mirror of
https://github.com/flarum/framework.git
synced 2025-05-02 17:44:03 +08:00
fix: use yarn in CI workflows (#10)
This commit is contained in:
parent
a144c026f3
commit
5cef9ad52c
@ -18,15 +18,15 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: "npm"
|
cache: "yarn"
|
||||||
cache-dependency-path: js/package-lock.json
|
cache-dependency-path: js/yarn.lock
|
||||||
|
|
||||||
- name: Install JS dependencies
|
- name: Install JS dependencies
|
||||||
run: npm ci
|
run: yarn install --frozen-lockfile
|
||||||
working-directory: ./js
|
working-directory: ./js
|
||||||
|
|
||||||
- name: Check JS formatting
|
- name: Check JS formatting
|
||||||
run: npm run format-check
|
run: yarn run format-check
|
||||||
working-directory: ./js
|
working-directory: ./js
|
||||||
|
|
||||||
build-prod:
|
build-prod:
|
||||||
@ -46,8 +46,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: "npm"
|
cache: "yarn"
|
||||||
cache-dependency-path: js/package-lock.json
|
cache-dependency-path: js/yarn.lock
|
||||||
|
|
||||||
# Our action will install npm, cd into `./js`, run `npm run build` and
|
# Our action will install npm, cd into `./js`, run `npm run build` and
|
||||||
# `npm run build-typings`, then commit and upload any changes
|
# `npm run build-typings`, then commit and upload any changes
|
||||||
@ -76,8 +76,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: "npm"
|
cache: "yarn"
|
||||||
cache-dependency-path: js/package-lock.json
|
cache-dependency-path: js/yarn.lock
|
||||||
|
|
||||||
# Our action will install npm, cd into `./js`, run `npm run build` and
|
# Our action will install npm, cd into `./js`, run `npm run build` and
|
||||||
# `npm run build-typings`, then commit and upload any changes
|
# `npm run build-typings`, then commit and upload any changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user