2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-01 12:20:48 +00:00

build/ci workflow: try to use setup-node-v2 cache to speed up build

This commit is contained in:
Ronan Jouchet 2021-12-25 16:42:48 -05:00
parent 24e8849564
commit 797922afb6

View File

@ -29,9 +29,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: |
npm-shrinkwrap.json
app/npm-shrinkwrap.json
package-lock.json
app/package-lock.json
# Will also (through `prepare` hook): 1. install ./app, and 2. build
- run: npm ci --no-fund
# Only run linter once, for faster CI. Align the versions of Node here with above and publish.yml.