mirror of
https://github.com/videojs/video.js.git
synced 2025-03-27 22:01:42 +02:00
build: Made prerelease task clearer and ignore build changes
This commit is contained in:
parent
90702a4f3e
commit
a6f4fb8ca7
@ -7,23 +7,30 @@ set -e
|
|||||||
# otherwise we cause an inifite loop when package version
|
# otherwise we cause an inifite loop when package version
|
||||||
# bumps get pushed back to master
|
# bumps get pushed back to master
|
||||||
if [[ $CI_MESSAGE = v[0-9]* ]]; then
|
if [[ $CI_MESSAGE = v[0-9]* ]]; then
|
||||||
|
echo "Version commit found. Exiting."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install our task runner
|
# exit if this is just a change to the build process not source
|
||||||
|
if [[ $CI_MESSAGE = build:* ]]; then
|
||||||
|
echo "Build commit found. Exiting."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Install our task runner..."
|
||||||
npm install -g contrib
|
npm install -g contrib
|
||||||
|
|
||||||
# configure npm for publishing
|
echo "Configure npm for publishing..."
|
||||||
printf "_auth=$NPM_AUTH_TOKEN\nemail=$NPM_EMAIL\n" > .npmrc
|
printf "_auth=$NPM_AUTH_TOKEN\nemail=$NPM_EMAIL\n" > .npmrc
|
||||||
|
|
||||||
# set git user to last committer
|
echo "Set git user to last committer..."
|
||||||
git config --global user.email $CI_COMMITTER_EMAIL
|
git config --global user.email $CI_COMMITTER_EMAIL
|
||||||
git config --global user.name $CI_COMMITTER_NAME
|
git config --global user.name $CI_COMMITTER_NAME
|
||||||
|
|
||||||
# setup git branches and remotes
|
echo "Setup git branches and remotes..."
|
||||||
git remote set-branches origin stable master
|
git remote set-branches origin stable master
|
||||||
git fetch
|
git fetch
|
||||||
git remote add upstream git@github.com:videojs/video.js.git
|
git remote add upstream git@github.com:videojs/video.js.git
|
||||||
|
|
||||||
# run the task
|
echo "Run the task..."
|
||||||
contrib release prerelease
|
contrib release prerelease
|
||||||
|
Loading…
x
Reference in New Issue
Block a user