diff --git a/.semaphore/npm.yml b/.semaphore/npm.yml index ccb6e7cb..3e96eb5b 100644 --- a/.semaphore/npm.yml +++ b/.semaphore/npm.yml @@ -13,7 +13,7 @@ blocks: jobs: - name: Deploy to NPM commands: - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - cache restore npm-package-$SEMAPHORE_GIT_BRANCH - cache restore package-$SEMAPHORE_GIT_BRANCH - npm set-script prepare "" diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index bc56f65f..c611152e 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -18,7 +18,7 @@ blocks: - "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)" - cache clear - yarn - - cache store node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) node_modules + - cache store - yarn build-tokens - cache store tokens-$SEMAPHORE_GIT_BRANCH build prologue: @@ -36,7 +36,7 @@ blocks: - name: Jest commands: - "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)" - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - cache restore tokens-$SEMAPHORE_GIT_BRANCH - yarn - yarn test @@ -51,7 +51,7 @@ blocks: - name: ESlint & TSC commands: - "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)" - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - cache restore tokens-$SEMAPHORE_GIT_BRANCH - yarn - yarn lint @@ -69,7 +69,7 @@ blocks: - name: Build NPM Package commands: - "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)" - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - cache restore tokens-$SEMAPHORE_GIT_BRANCH - yarn - yarn build @@ -78,7 +78,7 @@ blocks: - name: Build Storybook commands: - "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)" - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - cache restore tokens-$SEMAPHORE_GIT_BRANCH - yarn - yarn build-storybook diff --git a/.semaphore/storybook.yml b/.semaphore/storybook.yml index 0029eec4..6c4f693e 100644 --- a/.semaphore/storybook.yml +++ b/.semaphore/storybook.yml @@ -18,7 +18,7 @@ blocks: - ssh-keyscan -H github.com >> ~/.ssh/known_hosts - chmod 600 ~/.ssh/id_rsa_semaphore - ssh-add ~/.ssh/id_rsa_semaphore - - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) + - cache restore - npm i gh-pages -g - cache restore storybook-$SEMAPHORE_GIT_BRANCH - gh-pages --dist storybook-static --no-history --dotfiles --message "[skip ci] Updates"