Skip to content

Commit

Permalink
Don't trigger publish on script
Browse files Browse the repository at this point in the history
  • Loading branch information
osvalds committed Sep 28, 2023
1 parent 90d9f83 commit b345741
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions src/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ bail() {
# Initial config
PROJECT=$1
PROJECT_ROOT=`pwd`
PAGES_DIR=/tmp/$PROJECT-pages
DIST_DIR=$2

# Check version. Is this a release? If not abort
Expand All @@ -26,36 +25,16 @@ echo Attemping to publish version: $VERSION
[ "`git rev-parse HEAD`" = "`git rev-parse master`" ] || [ -n "$PRE_RELEASE" ] || bail "ERROR: You must release from the master branch"
[ -z "`git status --porcelain`" ] || bail "ERROR: Dirty index on working tree. Use git status to check"

# Publish to pages
rm -rf $PAGES_DIR
git clone [email protected]:dagrejs/dagrejs.github.io.git $PAGES_DIR

TMP_TARGET=$PAGES_DIR/project/$PROJECT/latest
rm -rf $TMP_TARGET
mkdir -p $TMP_TARGET
cp -r $DIST_DIR/*.js $TMP_TARGET

TMP_TARGET=$PAGES_DIR/project/$PROJECT/v$VERSION
rm -rf $TMP_TARGET
mkdir -p $TMP_TARGET
cp -r $DIST_DIR/*.js $TMP_TARGET

cd $PAGES_DIR/project/$PROJECT
git add -A
git commit -m "Publishing $PROJECT v$VERSION"
git push -f origin master
cd $PROJECT_ROOT
echo "Published $PROJECT to pages"

# Publish tag
git tag v$VERSION
git push origin
git push origin v$VERSION
echo Published $PROJECT v$VERSION

# Publish to npm
npm publish --access=public
echo Published to npm
## Publish to npm
#npm publish --access=public
#echo Published to npm

# Update patch level version + commit
./src/release/bump-version.js
Expand Down

0 comments on commit b345741

Please sign in to comment.