mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Change the version before building
This commit is contained in:
parent
e27e99b551
commit
9bd08f4968
@ -45,7 +45,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- stage: Lint & Build Dist
|
- stage: Lint & Build Dist
|
||||||
name: Build Dist
|
name: Build Dist
|
||||||
script: ./scripts/travis/build/build.sh || exit 1;
|
script:
|
||||||
|
- ./scripts/travis/build/build.sh || exit 1;
|
||||||
- stage: Lint & Build Dist
|
- stage: Lint & Build Dist
|
||||||
name: Lint
|
name: Lint
|
||||||
script: ./scripts/lint.sh || exit 1;
|
script: ./scripts/lint.sh || exit 1;
|
||||||
@ -89,7 +90,6 @@ jobs:
|
|||||||
- stage: Release on npm
|
- stage: Release on npm
|
||||||
script:
|
script:
|
||||||
- npm install @alfresco/adf-cli@alpha
|
- npm install @alfresco/adf-cli@alpha
|
||||||
- ./scripts/update-version.sh -nextalpha -gnu -minor -components
|
|
||||||
- npm run clean && npm install && npm run build-lib
|
- npm run clean && npm install && npm run build-lib
|
||||||
- ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
|
- ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Alfresco-ADF-Angular-Demo",
|
"name": "Alfresco-ADF-Angular-Demo",
|
||||||
"description": "Demo shell for Alfresco Angular components",
|
"description": "Demo shell for Alfresco Angular components",
|
||||||
"version": "3.4.0",
|
"version": "3.5.0-e27e99b551d71f585a8af0d0193f4a2e2606ff03",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "alfresco-ng2-components",
|
"name": "alfresco-ng2-components",
|
||||||
"commit": "b644b39d17396330d2a67509f58c5b9e890b9b13",
|
"commit": "b644b39d17396330d2a67509f58c5b9e890b9b13",
|
||||||
"description": "Alfresco Angular components",
|
"description": "Alfresco Angular components",
|
||||||
"version": "3.4.0",
|
"version": "3.5.0-e27e99b551d71f585a8af0d0193f4a2e2606ff03",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -8,6 +8,7 @@ rm -rf tmp && mkdir tmp;
|
|||||||
|
|
||||||
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
||||||
then
|
then
|
||||||
|
./scripts/update-version.sh -nextalpha -gnu -minor -components
|
||||||
./scripts/npm-build-all.sh || exit 1;
|
./scripts/npm-build-all.sh || exit 1;
|
||||||
else
|
else
|
||||||
./scripts/update-version.sh -gnu -alpha || exit 1;
|
./scripts/update-version.sh -gnu -alpha || exit 1;
|
||||||
|
@ -9,13 +9,7 @@ eval TOTAL_BUILD=true;
|
|||||||
eval SEMANTIC="minor";
|
eval SEMANTIC="minor";
|
||||||
|
|
||||||
eval projects=( "cli"
|
eval projects=( "cli"
|
||||||
"core"
|
)
|
||||||
"content-services"
|
|
||||||
"process-services"
|
|
||||||
"process-services-cloud"
|
|
||||||
"insights"
|
|
||||||
"testing"
|
|
||||||
"extensions" )
|
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
|
||||||
@ -123,7 +117,7 @@ only_components() {
|
|||||||
|
|
||||||
update_component_version() {
|
update_component_version() {
|
||||||
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
||||||
DESTDIR="$DIR/../lib/${1}"
|
DESTDIR="$DIR/../lib/dist/${1}"
|
||||||
sed "${sedi[@]}" "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" ${DESTDIR}/package.json
|
sed "${sedi[@]}" "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" ${DESTDIR}/package.json
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user