Skip to content

Commit

Permalink
Allow nx unknown local cache (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir authored Sep 25, 2023
1 parent 5fbf9ab commit e594824
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/npm-install-build-and-cache/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ runs:
node-version-file: ".nvmrc"
cache: npm

# Set NX_REJECT_UNKNOWN_LOCAL_CACHE=0 to allow NX to use the local cache even if the cache was built by a different machine
# https://nx.dev/recipes/troubleshooting/unknown-local-cache
- name: Allow NX to use unknown local cache
shell: bash
run: echo "NX_REJECT_UNKNOWN_LOCAL_CACHE=0" >> $GITHUB_ENV

- name: Cache NPM dependencies
uses: actions/cache@v3
id: cache-npm-deps
Expand Down

0 comments on commit e594824

Please sign in to comment.