Skip to content

Commit

Permalink
build(lerna): canary publish script dist-tag = current git branch
Browse files Browse the repository at this point in the history
Primary change:
=============

The npm dist-tag parameter will now be set to whatever is the
current git branch checked out.

This allows for developers to work on their own feature branches
and publish their own canary releases
for every single commit as they see fit without having to wait for the
an upcoming official release.

Miscellaneous change:

The script will now make sure to run the CI script prior to issuing the
canary release so that it is guaranteed
that the canary release does not go
out unless it was made from a revision
of the code that has the tests and build passing.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Apr 28, 2021
1 parent dc2f257 commit 4fddc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"commit": "git-cz --signoff",
"prettier": "prettier --write --config .prettierrc.json \"./**/*.{ts,js}\"",
"version": "npm ci && lerna clean --yes && lerna bootstrap && npm run build:dev && npm run build:prod && npm run test:unit",
"lerna-publish-canary": "lerna publish --canary --sign-git-commit --sign-git-tag",
"lerna-publish-canary": "npm run run-ci && lerna publish --canary --force-publish --dist-tag $(git branch --show-current) --preid $(git branch --show-current).$(git rev-parse --short HEAD)",
"lerna-publish": "lerna publish --conventional-commits --sign-git-commit --sign-git-tag"
},
"devDependencies": {
Expand Down

0 comments on commit 4fddc6b

Please sign in to comment.