mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -04:00
Update version format
-prerelease.[timestamp] is semver friendly. Move SHA info to package.json.
This commit is contained in:
parent
e4ec9c551f
commit
e31fc19a50
2 changed files with 5 additions and 4 deletions
|
@ -22,8 +22,8 @@ after_script:
|
|||
]]; then
|
||||
# Authenticate NPM
|
||||
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
|
||||
# Set version to commit SHA
|
||||
npm --no-git-tag-version version $(node -p -e "require('./package.json').version")-${TRAVIS_COMMIT:0:5}
|
||||
# Set version to timestamp
|
||||
npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
|
||||
npm publish
|
||||
# Publish to gh-pages as most recent committer
|
||||
git config --global user.email $(git log --pretty=format:"%ce" -n1)
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
"scripts": {
|
||||
"prepublish": "./node_modules/.bin/webpack --bail",
|
||||
"start": "make serve",
|
||||
"test": "make test"
|
||||
"test": "make test",
|
||||
"version": "./node_modules/.bin/json -f package.json -I -e \"this.repository.sha = '$(git log -n1 --pretty=format:%H)'\""
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"copy-webpack-plugin": "3.0.1",
|
||||
"eslint": "2.7.0",
|
||||
|
@ -23,6 +23,7 @@
|
|||
"gh-pages": "0.11.0",
|
||||
"highlightjs": "8.7.0",
|
||||
"htmlparser2": "3.9.0",
|
||||
"json": "9.0.4",
|
||||
"json-loader": "0.5.4",
|
||||
"lodash.defaultsdeep": "4.6.0",
|
||||
"promise": "7.1.1",
|
||||
|
|
Loading…
Reference in a new issue