mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 07:19:56 +08:00
Cache npm cache between JS build runs (#2710)
This commit is contained in:
parent
06c3a4f429
commit
84e12a4864
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user