You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2021/02/04 04:04:06 UTC

[incubator-annotator] 05/05: Update publish command

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 2ce103f17860cafec221524793f340add98bc25f
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Wed Feb 3 19:37:47 2021 -0800

    Update publish command
    
    Remove arguments already captured in lerna.json, move the canary
    specifics to travi.yml, force all packages to publish for canary
    publishes, and make all canary publishes depend on exact version
    numbers of sibling packages.
---
 .travis.yml  | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8def488..8781f5a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,7 +22,7 @@ deploy:
     api_token:
       secure: kjnHYXAsaqKFX9tYWRC4Zp/k9e8RQ79jVdjBNKlFExmPL5AvocYz/YeCbA/hZSnR02IjVHDAgWxVKCSDcIpDmhs0Bd7fOuyNmNm+ET0aFF6emtAMnw4RfmS0z0ZcQ8gDk3EhQ+c59VTe6s3TexBxXXUhEclKghF/iRFrcHtPBxmqTuo1rH9Nyp9Kk7QLFHMC2y1AWeTpjCdKA5ooxPb353oXRHS985sirnYkzUphTkMSFkK27hupbDpDSfiHYOZEZzGWUrgT7YYALqcck22Jqy7MdWhZgoAOFr0R26oz7wVssnvt2PNc8hFgK4oLBRwKloNjBKMBChRoJ257yGM2ak+z844xFx36u1x/MOS6NhC15UOdyZLKm6gyGFvNOUVuPmLpNhwh/0DkZ+N56FevOWoAT7+fg3Op67KnGKk3TZfEPKOixqF4w6TfhJCEQfEvZg/6618SfoxuI5SidBqweRNT9B+iTo [...]
     cleanup: true
-    run_script: canary
+    run_script: publish -- --canary --exact --force-publish "*" --yes minor
     on:
       branch: master
 
diff --git a/package.json b/package.json
index 0840fea..688fae6 100644
--- a/package.json
+++ b/package.json
@@ -21,11 +21,11 @@
     "build:lib:esm": "cross-env BABEL_ENV=esm yarn build:lib --out-file-extension .mjs",
     "build:lib:types": "tsc --build",
     "build:misc": "lerna exec --parallel -- cp ../../DISCLAIMER-WIP ../../LICENSE ../../NOTICE ../../README.md .",
-    "canary": "lerna publish --canary --dist-tag dev --no-git-tag-version --preid dev --yes",
     "clean": "tsc --build --clean && lerna exec -- rimraf DISCLAIMER-WIP LICENSE NOTICE README.md lib",
     "lint": "tsc --build && eslint .",
     "prepare": "yarn run build:lib:types && lerna run prepare",
     "prepublishOnly": "yarn run build",
+    "publish": "lerna publish",
     "start": "yarn run web:server",
     "test": "cross-env BABEL_ENV=test nyc mocha packages/**/*.test.ts",
     "validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",