mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 21:52:35 -05:00
Npm versioning (#4)
* replace patchversion with date-time stamp: YYYYmmddHHMMSS * Bump to first major version Ready to start using this in gui.
This commit is contained in:
parent
39de2e5a0d
commit
c6f52ae643
2 changed files with 7 additions and 5 deletions
|
@ -12,12 +12,13 @@ jobs:
|
||||||
node_js: 6
|
node_js: 6
|
||||||
script: npm run build
|
script: npm run build
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
|
- VPKG=$($(npm bin)/json -f package.json version)
|
||||||
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
|
- export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S)
|
||||||
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
- npm --no-git-tag-version version $VERSION
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
provider: npm
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
email: $NPM_EMAIL
|
email: $NPM_EMAIL
|
||||||
api_key: $NPM_TOKEN
|
api_key: $NPM_TOKEN
|
||||||
|
on:
|
||||||
|
all_branches: true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "scratch-l10n",
|
"name": "scratch-l10n",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"description": "Localization for the Scratch 3.0 components",
|
"description": "Localization for the Scratch 3.0 components",
|
||||||
"main": "./dist/l10n.js",
|
"main": "./dist/l10n.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
"eslint-config-scratch": "^4.0.0",
|
"eslint-config-scratch": "^4.0.0",
|
||||||
"eslint-plugin-import": "^2.7.0",
|
"eslint-plugin-import": "^2.7.0",
|
||||||
"eslint-plugin-json": "1.2.0",
|
"eslint-plugin-json": "1.2.0",
|
||||||
|
"json": "^9.0.6",
|
||||||
"lodash.defaultsdeep": "4.6.0",
|
"lodash.defaultsdeep": "4.6.0",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
"react-intl": "2.4.0",
|
"react-intl": "2.4.0",
|
||||||
|
|
Loading…
Reference in a new issue