From 94e67f6b6afc128f17ee88d3a0cf882bc86f30d0 Mon Sep 17 00:00:00 2001 From: harkamal Date: Wed, 19 Jan 2022 00:22:15 +0530 Subject: [PATCH] Fix nightly release workflow --- .github/workflows/release-nightly.yml | 31 +++++++++++++++++++++------ 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index a32a845b4022..49d534ddd0cc 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -42,15 +42,32 @@ jobs: # - name: Publish to npm registry - # from-package: Base the latest nightly ref count from NPM registry - # --no-git-reset: Do not delete code version artifacts so the next step can pick the version - # --canary: Format version with commit (1.1.0-alpha.0+81e3b443) - # --dist-tag next: Make this nightly version installable with `@next` - # --preid dev: Tag version with `dev` instead of `alpha` - # --force-publish: lerna doesn't want to publish anything otherwise - "lerna success No changed packages to publish" + # Just use lerna publish with --canary option. Using 'from-package' ignore other options + # and only compares against the verison in package.json, and skips release if already + # published. + # + # --no-git-reset: + # Do not delete code version artifacts so the next step can pick the version + # + # --canary: + # Format version with commit (1.1.0-alpha.0+81e3b443). Make sure the previous + # released tags are not lightweight("commit" type), but proper annotated ("tag" type) + # Otherwise the version canary will generate will be from last annotated tag type + # Best way to create such a tag is by using 'git tag -a' or using lerna publish! + # + # --dist-tag next: + # Make this nightly version installable with `@next` + # + # --preid dev: + # Tag version with `dev` instead of `alpha` + # + # --force-publish: + # lerna doesn't want to publish anything otherwise - "lerna success No changed packages + # to publish" + # # NOTE: Using --preid dev.$(git rev-parse --short=7 HEAD) results in `0.24.3-dev.3ddb91d.0+3ddb91d` run: | - node_modules/.bin/lerna publish from-package --yes --no-verify-access \ + node_modules/.bin/lerna publish --yes --no-verify-access \ --canary --dist-tag next --no-git-reset --force-publish \ --preid dev env: