Skip to content

Commit

Permalink
build: publish-canary script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Apr 7, 2020
1 parent 9839d01 commit 8fc53ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"migrate": "lerna run migrate",
"ci": "run-s lint build migrate test build",
"coverage": "yarn test --coverage",
"coveralls": "yarn coverage --coverageReporters=text-lcov | coveralls"
"coveralls": "yarn coverage --coverageReporters=text-lcov | coveralls",
"commit-date": "git log -n 1 --date=format:'%Y-%m-%d-%H-%M-%S' --pretty=format:'%ad'",
"current-branch": "echo \"${CURRENT_BRANCH-$(git rev-parse --abbrev-ref HEAD)}\" | sed -E 's/refs\\/heads\\///' | sed -E 's/\\W|_/-/g'",
"canary-preid": "echo \"$(yarn --silent current-branch)-$(yarn --silent commit-date)\"",
"publish-canary": "lerna publish --canary --preid $(yarn --silent canary-preid) --dist-tag $(yarn --silent current-branch)"
},
"prettier": {
"bracketSpacing": false,
Expand Down

0 comments on commit 8fc53ce

Please sign in to comment.