mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
ci: updated ci to support better caching
This commit is contained in:
parent
b5c590545f
commit
1c442ce08e
1
.github/dependabot.yml
vendored
1
.github/dependabot.yml
vendored
@ -4,6 +4,7 @@ updates:
|
||||
directory: './'
|
||||
schedule:
|
||||
interval: 'daily'
|
||||
|
||||
- package-ecosystem: 'github-actions'
|
||||
directory: '/'
|
||||
schedule:
|
||||
|
||||
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@ -16,20 +16,14 @@ jobs:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
- name: Setup node and restore cached dependencies
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
registry-url: 'https://registry.npmjs.org/'
|
||||
node-version: '16'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install deps (with cache)
|
||||
uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
# delete yarn.lock and create an package-lock.json
|
||||
useLockFile: false
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
- name: Install packages
|
||||
run: yarn --prefer-offline
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user