Skip to content
Closed
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions .github/actions/build-monorepo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Build"
description: "Builds the monorepo."

inputs:
skip-cache-restore:
description: 'Whether to skip restoring the cache.'
default: 'false'

runs:
using: "composite"
steps:
- name: Restore NX cache
uses: actions/cache/restore@v4
# Disable cache when:
# - on develop
# - on release branches
# - when PR has `ci-skip-cache`
if: ${{ inputs.skip-cache-restore }} == 'false'
with:
path: .nxcache
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
restore-keys: ${{ env.NX_CACHE_RESTORE_KEYS }}

- name: Build packages
# Set the CODECOV_TOKEN for Bundle Analysis
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: yarn build

- name: Save NX cache
uses: actions/cache/save@v4
with:
path: .nxcache
key: ${{ env.NX_CACHE_SAVE_KEY }}
7 changes: 5 additions & 2 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ runs:
id: cache_dependencies
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
key: ${{ runner.os }}-dependency-cache-${{ steps.compute_lockfile_hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-dependency-cache-${{ steps.compute_lockfile_hash.outputs.hash }}
${{ runner.os }}-dependency-cache-
${{ runner.os }}-

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: yarn install --ignore-engines --frozen-lockfile
shell: bash
25 changes: 0 additions & 25 deletions .github/actions/restore-cache/action.yml

This file was deleted.

Loading