mirror of
https://github.com/primer/css.git
synced 2024-12-01 04:21:12 +03:00
20 lines
481 B
Bash
Executable File
20 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
echo "📦 Publishing latest release..."
|
|
|
|
$(dirname $0)/notify pending
|
|
|
|
# note: try-publish should exit cleanly if it detects a duplicate
|
|
# published version
|
|
$(npm bin)/lerna exec -- $(pwd)/script/try-publish
|
|
|
|
# Build and publish storybook
|
|
$(npm bin)/build-storybook -o build
|
|
$(npm bin)/gh-pages -d build -b gh-pages -r https://${GH_TOKEN}@github.com/primer/storybook
|
|
|
|
echo "📓 Updated CHANGELOG..."
|
|
|
|
$(npm bin)/lerna-changelog
|
|
|
|
$(dirname $0)/notify success
|