Skip to content

Commit

Permalink
revert caching changes
Browse files Browse the repository at this point in the history
  • Loading branch information
josefie committed Feb 10, 2023
1 parent fca9a2c commit 8c6bfd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .semaphore/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
10 changes: 5 additions & 5 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .semaphore/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8c6bfd0

Please sign in to comment.