Skip to content

Commit

Permalink
fix(publish): corrupt packages canaries (#3072)
Browse files Browse the repository at this point in the history
Fixes publishing packages that haven't been built.
  • Loading branch information
tknickman committed Dec 19, 2022
1 parent 812895c commit 741a529
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ snapshot-turbo:


.PHONY: publish-turbo
publish-turbo:
publish-turbo: clean build
echo "Version: $(TURBO_VERSION)"
echo "Tag: $(TURBO_TAG)"

Expand All @@ -217,14 +217,12 @@ publish-turbo:

# Split packing from the publish step so that npm locates the correct .npmrc file.
npm pack $(CLI_DIR)/../packages/turbo --pack-destination=$(CLI_DIR)/../
npm pack $(CLI_DIR)/../packages/turbo-ignore --pack-destination=$(CLI_DIR)/../
npm pack $(CLI_DIR)/../packages/create-turbo --pack-destination=$(CLI_DIR)/../
npm pack $(CLI_DIR)/../packages/turbo-codemod --pack-destination=$(CLI_DIR)/../

# Publish the remaining JS packages in order to avoid race conditions.
cd $(CLI_DIR)/../
npm publish -ddd --tag $(TURBO_TAG) $(CLI_DIR)/../turbo-$(TURBO_VERSION).tgz
# npm publish -ddd --tag $(TURBO_TAG) $(CLI_DIR)/../turbo-ignore-$(TURBO_VERSION).tgz
npm publish -ddd --tag $(TURBO_TAG) $(CLI_DIR)/../create-turbo-$(TURBO_VERSION).tgz
npm publish -ddd --tag $(TURBO_TAG) $(CLI_DIR)/../turbo-codemod-$(TURBO_VERSION).tgz

Expand Down

0 comments on commit 741a529

Please sign in to comment.