Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updating docs build to respect yarn.lock #1714

Merged
merged 4 commits into from
Apr 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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