chore(ci): speed up and fix yarn cache (#90)

This commit is contained in:
pooya parsa 2021-04-15 21:34:26 +02:00 committed by GitHub
parent f4d9354d7e
commit ac3ee259c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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": {