Skip to content

Commit

Permalink
chore: updating docs build to respect yarn.lock (#1714)
Browse files Browse the repository at this point in the history
* chore: updating docs build to respect yarn.lock

* chore: adding resolution to clear cache

* Update tests.yml (#1715)

* chore: removing dep resolution

Co-authored-by: William Lee <43682783+wlee221@users.noreply.github.com>
  • Loading branch information
zchenwei and wlee221 authored Apr 19, 2022
1 parent 05fa04b commit d2bf617
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,39 +308,13 @@ jobs:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}

- name: Restore Cache
uses: actions/cache@v2
id: restore-cache
with:
path: |
./node_modules
**/node_modules
key: ${{ runner.os }}-nodemodules-${{ needs.setup.outputs.commit }}

- name: Install packages
if: steps.restore-cache.outputs.cache-hit != 'true'
run: yarn --no-lockfile

- name: Restore ui/dist cache
uses: actions/cache@v2
id: restore-ui-cache
with:
path: ./packages/ui/dist
key: ${{ runner.os }}-ui-${{ needs.setup.outputs.commit }}

- name: Restore react/dist cache
uses: actions/cache@v2
id: restore-react-cache
with:
path: ./packages/react/dist
key: ${{ runner.os }}-@aws-amplify/ui-react-${{ needs.setup.outputs.commit }}
run: yarn install

- name: Build ui package
if: steps.restore-ui-cache.outputs.cache-hit != 'true'
run: yarn ui build

- name: Build react package
if: steps.restore-react-cache.outputs.cache-hit != 'true'
run: yarn react build

- name: Build docs package
Expand Down

0 comments on commit d2bf617

Please sign in to comment.