From 1d8618c15233367b7f6c219d99cecf73da0ecbac Mon Sep 17 00:00:00 2001 From: Vincenzo Chianese Date: Thu, 23 May 2019 17:42:25 -0500 Subject: [PATCH] fix: try to publish first, and then publish binaries (#318) * fix: move lerna publish upside and regenerate yarn * chore: remove gitignore --- .circleci/config.yml | 6 +++--- packages/cli/.gitignore | 8 -------- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 packages/cli/.gitignore diff --git a/.circleci/config.yml b/.circleci/config.yml index a0001c063..6c0d06c7e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,6 +48,9 @@ jobs: name: Build all code to JavaScript command: yarn build - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + - run: + name: Publish + command: yarn lerna publish from-git --github-release --yes --dist-tag alpha - run: name: Create CLI binaries command: npx pkg --out-path ./cli-binaries ./packages/cli/ @@ -57,9 +60,6 @@ jobs: root: ./ paths: - cli-binaries - - run: - name: Publish - command: yarn lerna publish from-git --github-release --yes --dist-tag alpha upload_artifacts: docker: - image: circleci/golang:1-stretch diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore deleted file mode 100644 index 9d6ea2ca5..000000000 --- a/packages/cli/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*-debug.log -*-error.log -/.nyc_output -/dist -/lib -/package-lock.json -/tmp -node_modules diff --git a/yarn.lock b/yarn.lock index a0f8dd0ce..f17a0c7e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4714,10 +4714,10 @@ jsonparse@^1.2.0: resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= -"jsonpath@git+https://github.com/stoplightio/jsonpath.git#f1c0e9e634da2d45671b7639fa0a99afc807da17": +"jsonpath@https://github.com/stoplightio/jsonpath#f1c0e9e634da2d45671b7639fa0a99afc807da17": version "1.0.0" uid f1c0e9e634da2d45671b7639fa0a99afc807da17 - resolved "git+https://github.com/stoplightio/jsonpath.git#f1c0e9e634da2d45671b7639fa0a99afc807da17" + resolved "https://github.com/stoplightio/jsonpath#f1c0e9e634da2d45671b7639fa0a99afc807da17" dependencies: esprima "1.2.2" jison "0.4.13"