Skip to content

Commit

Permalink
Update yarn cache setup in github action (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliren committed Dec 15, 2022
1 parent a609eb1 commit e01e8d2
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,14 @@ jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- name: Get Yarn cache path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.8.0'
- name: Load Yarn cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile --prefer-offline
- name: Build public packages
run: npm run build:all
- name: Run syncpack, eslint, tsc and jest
Expand Down

0 comments on commit e01e8d2

Please sign in to comment.