mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +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
|
- uses: actions/cache@v2
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
with:
|
with:
|
||||||
path: .yarn/cache
|
path: .yarn
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
@ -37,9 +37,6 @@ jobs:
|
|||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: yarn --immutable
|
run: yarn --immutable
|
||||||
|
|
||||||
- name: Stub
|
|
||||||
run: yarn stub
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
|
16
.yarnrc.yml
16
.yarnrc.yml
@ -1,17 +1,17 @@
|
|||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
|
packageExtensions:
|
||||||
|
"@nuxtjs/eslint-config-typescript@*":
|
||||||
|
peerDependencies:
|
||||||
|
eslint: "*"
|
||||||
|
rollup-plugin-esbuild@*:
|
||||||
|
peerDependencies:
|
||||||
|
rollup: "*"
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
|
||||||
spec: "@yarnpkg/plugin-typescript"
|
spec: "@yarnpkg/plugin-typescript"
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||||
spec: "@yarnpkg/plugin-interactive-tools"
|
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
|
yarnPath: .yarn/releases/yarn-2.4.1.cjs
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
"nu": "./node_modules/.bin/nu",
|
"nu": "./node_modules/.bin/nu",
|
||||||
"play": "yarn run nu dev playground",
|
"play": "yarn run nu dev playground",
|
||||||
"lint": "eslint --ext .vue,.ts,.js .",
|
"lint": "eslint --ext .vue,.ts,.js .",
|
||||||
"postinstall": "yarn stub",
|
|
||||||
"version": "yarn && git add yarn.lock"
|
"version": "yarn && git add yarn.lock"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
Loading…
Reference in New Issue
Block a user