mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
Merge pull request #1169 from LLK/revert-1132-before_deploy-once
Revert "Only run before_deploy once during deployment"
This commit is contained in:
commit
51a4bdb345
1 changed files with 3 additions and 8 deletions
11
.travis.yml
11
.travis.yml
|
@ -24,14 +24,9 @@ jobs:
|
||||||
node_js: 8
|
node_js: 8
|
||||||
env: NPM_SCRIPT=build
|
env: NPM_SCRIPT=build
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- >
|
- npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
|
||||||
# Only run this once for both deploys (avoids weird double version number)
|
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
|
||||||
if ![ "$BEFORE_DEPLOY_RAN" ]; then
|
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
||||||
export BEFORE_DEPLOY_RAN=1;
|
|
||||||
npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s);
|
|
||||||
git config --global user.email $(git log --pretty=format:"%ae" -n1);
|
|
||||||
git config --global user.name $(git log --pretty=format:"%an" -n1);
|
|
||||||
fi
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: npm
|
- provider: npm
|
||||||
on:
|
on:
|
||||||
|
|
Loading…
Reference in a new issue