Skip to content

Commit

Permalink
some missed yarn steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Sep 22, 2023
1 parent 55ef625 commit 140d3d5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion orbs/shared/commands/save_node_cache.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: Save the current node cache at a standard path
steps:
- save_cache:
key: release-node-cache-{{ checksum "cache-version.txt" }}-{{ checksum "package.json" }}
key: node-release-cache-{{ checksum "cache-version.txt" }}-{{ checksum "yarn.lock" }}
paths:
# Loosely based on a Github action Gist for caching yarn[^1].
#
Expand Down
3 changes: 2 additions & 1 deletion orbs/shared/commands/save_node_client_cache.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
description: Save the node client's cache at a standard path
steps:
- save_cache:
key: v1-node-client-cache-{{ checksum "cache-version.txt" }}-{{ checksum "api/clients/node/package.json" }}
key: node-client-cache-{{ checksum "cache-version.txt" }}-{{ checksum "api/clients/node/yarn.lock" }}
paths:
- api/clients/node/node_modules
- api/clients/node/.yarn
4 changes: 2 additions & 2 deletions orbs/shared/commands/with_node_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ parameters:
steps:
- restore_cache:
keys:
- release-node-cache-{{ checksum "cache-version.txt" }}-{{ checksum "package.json" }}
- release-node-cache-{{ checksum "cache-version.txt" }}
- node-release-cache-{{ checksum "cache-version.txt" }}-{{ checksum "package.json" }}
- node-release-cache-{{ checksum "cache-version.txt" }}
- run:
name: Install semantic-release Dependencies
command: yarn --immutable
Expand Down
4 changes: 2 additions & 2 deletions orbs/shared/commands/with_node_client_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ parameters:
steps:
- restore_cache:
keys:
- v1-node-client-cache-{{ checksum "cache-version.txt" }}-{{ checksum "api/clients/node/package.json" }}
- v1-node-client-cache-{{ checksum "cache-version.txt" }}
- node-client-cache-{{ checksum "cache-version.txt" }}-{{ checksum "api/clients/node/package.json" }}
- node-client-cache-{{ checksum "cache-version.txt" }}
- run:
name: Install Node.js Client Dependencies
working_directory: api/clients/node
Expand Down
2 changes: 1 addition & 1 deletion orbs/shared/jobs/test_node_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ steps:
- run:
name: Test Node gRPC client
working_directory: api/clients/node/
command: yarn --frozen-lockfile test-ci
command: yarn test-ci
2 changes: 1 addition & 1 deletion shell/ci/release/dryrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [[ -z $GH_TOKEN ]]; then
echo "Failed to read Github personal access token" >&2
fi

GH_TOKEN="$GH_TOKEN" yarn --frozen-lockfile semantic-release --dry-run
GH_TOKEN="$GH_TOKEN" yarn semantic-release --dry-run

# Handle unstable releasing for CLIs, pre-conditions for this exist
# in the script.
Expand Down

0 comments on commit 140d3d5

Please sign in to comment.