mirror of
https://github.com/flarum/core.git
synced 2025-07-29 12:40:40 +02:00
Cache npm cache between JS build runs (#2710)
This commit is contained in:
10
framework/core/.github/workflows/build.yml
vendored
10
framework/core/.github/workflows/build.yml
vendored
@@ -14,6 +14,16 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Restore npm cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.npm
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('js/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
|
|
||||||
|
# Our action will install npm, cd into `./js`, run `npm run build`,
|
||||||
|
# then commit and upload any changes
|
||||||
- name: Build production JS
|
- name: Build production JS
|
||||||
uses: flarum/action-build@master
|
uses: flarum/action-build@master
|
||||||
env:
|
env:
|
||||||
|
Reference in New Issue
Block a user