diff --git a/.travis.yml b/.travis.yml index 43c9f8fd..f4ab78bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,12 +12,13 @@ jobs: node_js: 6 script: npm run build before_deploy: - - 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) + - VPKG=$($(npm bin)/json -f package.json version) + - export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S) + - npm --no-git-tag-version version $VERSION deploy: provider: npm skip_cleanup: true email: $NPM_EMAIL api_key: $NPM_TOKEN - + on: + all_branches: true diff --git a/package.json b/package.json index 04cf7af2..806014fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scratch-l10n", - "version": "0.1.0", + "version": "1.0.0", "description": "Localization for the Scratch 3.0 components", "main": "./dist/l10n.js", "scripts": { @@ -31,6 +31,7 @@ "eslint-config-scratch": "^4.0.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-json": "1.2.0", + "json": "^9.0.6", "lodash.defaultsdeep": "4.6.0", "mkdirp": "^0.5.1", "react-intl": "2.4.0",