1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-27 11:22:06 +02:00
video.js/build/bin/prerelease

30 lines
694 B
Plaintext
Raw Normal View History

#!/bin/bash
# exit after any line errors
set -e
# exit if this is a version commit
# otherwise we cause an inifite loop when package version
# bumps get pushed back to master
if [[ $CI_MESSAGE = v[0-9]* ]]; then
exit 0
fi
# install our task runner
npm install -g contrib
# configure npm for publishing
printf "_auth=$NPM_AUTH_TOKEN\nemail=$NPM_EMAIL\n" > .npmrc
# set git user to last committer
git config --global user.email $CI_COMMITTER_EMAIL
git config --global user.name $CI_COMMITTER_NAME
# setup git branches and remotes
git remote set-branches origin stable master
git fetch
git remote add upstream git@github.com:videojs/video.js.git
# run the task
contrib release prerelease