Skip to content

Commit

Permalink
Move get-marker closer to where it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel committed Feb 26, 2020
1 parent 4877f02 commit cecb7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ rm -rf dist/java/software/amazon/jsii

# Get version
version="$(node -p "require('./scripts/get-version')")"
marker=$(node -p "require('./scripts/get-version-marker')")

# Ensure we don't publish anything beyond 1.x for now
if [[ ! "${version}" == "1."* ]]; then
Expand Down Expand Up @@ -89,6 +88,7 @@ cp CHANGELOG.md ${distdir}/
# defensive: make sure our artifacts don't use the version marker (this means
# that "pack" will always fails when building in a dev environment)
# when we get to 10.0.0, we can fix this...
marker=$(node -p "require('./scripts/get-version-marker')")
if find dist/ | grep "${marker}"; then
echo "ERROR: build artifacts use the version marker '${marker}' instead of a real version."
echo "This is expected for builds in a development environment but should not happen in CI builds!"
Expand Down

0 comments on commit cecb7e9

Please sign in to comment.