Skip to content

Commit

Permalink
ci: update publish to cache and restore build assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kajabi-bot committed Aug 25, 2023
1 parent b27d526 commit 06508f7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-deploy-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ jobs:
if: steps.restore-sage-lib-node-modules.outputs.cache-hit != true
run: yarn install --frozen-lockfile

- name: Cache build assets
uses: actions/cache@v3
id: sage-lib-build-assets
env:
cache-name: sage-lib-build-assets
with:
path: 'packages/**'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- name: Build
run: yarn build

Expand Down Expand Up @@ -192,6 +201,19 @@ jobs:
- name: Lerna Boostrap
run: npx lerna bootstrap --ci

- name: Restore Build assets
uses: actions/cache/restore@v3
id: restore-sage-lib-build-assets
env:
cache-name: sage-lib-build-assets
with:
path: 'packages/**'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- name: Check Build Assets cache hit
if: steps.restore-sage-lib-build-assets.outputs.cache-hit != 'true'
run: exit 1

- name: Lerna Publish
run: npx lerna publish --registry github --yes

Expand Down

0 comments on commit 06508f7

Please sign in to comment.