mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore(ci): speed up and fix yarn cache (#90)
This commit is contained in:
parent
f4d9354d7e
commit
ac3ee259c0
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
||||
- uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: .yarn/cache
|
||||
path: .yarn
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
@ -37,9 +37,6 @@ jobs:
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: yarn --immutable
|
||||
|
||||
- name: Stub
|
||||
run: yarn stub
|
||||
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
|
||||
|
16
.yarnrc.yml
16
.yarnrc.yml
@ -1,17 +1,17 @@
|
||||
nodeLinker: node-modules
|
||||
|
||||
packageExtensions:
|
||||
"@nuxtjs/eslint-config-typescript@*":
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
rollup-plugin-esbuild@*:
|
||||
peerDependencies:
|
||||
rollup: "*"
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
|
||||
spec: "@yarnpkg/plugin-typescript"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
|
||||
packageExtensions:
|
||||
rollup-plugin-esbuild@*:
|
||||
peerDependencies:
|
||||
rollup: "*"
|
||||
'@nuxtjs/eslint-config-typescript@*':
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-2.4.1.cjs
|
||||
|
@ -11,7 +11,6 @@
|
||||
"nu": "./node_modules/.bin/nu",
|
||||
"play": "yarn run nu dev playground",
|
||||
"lint": "eslint --ext .vue,.ts,.js .",
|
||||
"postinstall": "yarn stub",
|
||||
"version": "yarn && git add yarn.lock"
|
||||
},
|
||||
"resolutions": {
|
||||
|
Loading…
Reference in New Issue
Block a user