chore: fix setuo-node cache
This commit is contained in:
parent
ba09be474d
commit
59b5b1a46a
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
cache: 'yarn'
|
||||
- name: build file
|
||||
run: yarn && npm run build:all
|
||||
- name: Deploy
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- run: npm run format
|
||||
- name: Commit files
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
cache: 'yarn'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Release
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- name: Lint
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- run: npm run jest
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in New Issue