1
1
mirror of https://github.com/primer/css.git synced 2024-11-24 05:06:04 +03:00

clean up release scripts; separte out changelog script

This commit is contained in:
Shawn Allen 2018-12-30 08:53:44 -08:00
parent 487d98beb1
commit 85a1ea5aa1
3 changed files with 12 additions and 10 deletions

5
script/generate-changelog Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
echo "📓 Generating CHANGELOG..."
npx lerna-changelog

View File

@ -1,15 +1,14 @@
#!/bin/bash
set -e
echo "📦 Publishing latest release..."
# note: try-publish should exit cleanly if it detects a duplicate
# published version
$(npm bin)/lerna exec -- $(pwd)/script/try-publish
npx lerna exec $@ -- script/try-publish
# Build and publish storybook
$(npm bin)/build-storybook -o build
npx build-storybook -o build
script/publish-storybook
echo "📓 Updated CHANGELOG..."
$(npm bin)/lerna-changelog
script/generate-changelog

View File

@ -1,9 +1,7 @@
#!/bin/bash
set -e
echo "🐦 Publishing PR (canary) release..."
npx lerna publish --npm-tag=pr --canary --exact $@
$(npm bin)/lerna publish --npm-tag=pr --canary --exact $@
echo "📓 Updated CHANGELOG..."
$(npm bin)/lerna-changelog
script/generate-changelog