Skip to content

Commit

Permalink
additional quote confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Mar 13, 2024
1 parent 0bc78e6 commit 9316276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ jobs:
version_line=$(grep -n "\"version\": \"${base_version}\"" package.json | cut -d: -f1) # determine which line in package.json specifies the version
version_bump_commit=$(git blame --porcelain -L "${version_line},${version_line}" -- package.json | head -n1 | awk '{ print $1 }') # ask git when the last commit to that line was
commits_since_version_bump=$(git rev-list HEAD ${version_bump_commit} --count -- .) # count the number of commits that changed this package since the version change commit
last_commit_to_package=$(git log -1 --pretty=format:%H -- .)
last_commit_to_package="$(git log -1 --pretty=format:%H -- .)"
snapshot_version="${base_version}-SNAPSHOT.${commits_since_version_bump}-${last_commit_to_package:0:7}"
# check if that snapshot version has already been published
if npm view --registry "${REGISTRY}" "@web5/${package_name}@${snapshot_version}" > /dev/null"; then
if npm view --registry "${REGISTRY}" "@web5/${package_name}@${snapshot_version}" > /dev/null; then
echo "release for @web5/${package_name}-${snapshot_version} already exists, not re-publishing"
exit 0
fi
Expand Down

0 comments on commit 9316276

Please sign in to comment.