Skip to content

Commit

Permalink
fix cache hit on build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Oct 29, 2024
1 parent 84efdf6 commit 01a4be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
# packages, and so `yarn build` should always run. This `if` check is therefore only there for testing CI issues
# where the built packages are beside the point. In that case, you can change `BUILD_CACHE_KEY` (at the top of
# this file) to a constant and skip rebuilding all of the packages each time CI runs.
if: steps.cache_built_packages.outputs.cache-hit == ''
if: steps.cache_built_packages.outputs.cache-hit == '!= true'
run: yarn build
# yarn.lock cannot be dirty when releasing a new version.
- name: Check if yarn.lock is dirty
if: steps.cache_built_packages.outputs.cache-hit == ''
if: steps.cache_built_packages.outputs.cache-hit == '!= true'
run: yarn install --frozen-lockfile
- name: Publish package locally
run: |
Expand Down

0 comments on commit 01a4be5

Please sign in to comment.