mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Add a travis step to publish on npm (#5004)
This commit is contained in:
+8
-1
@@ -22,11 +22,12 @@ branches:
|
|||||||
|
|
||||||
# TRAVIS_PULL_REQUEST == false means is running on dev branch and is not a PR
|
# TRAVIS_PULL_REQUEST == false means is running on dev branch and is not a PR
|
||||||
stages:
|
stages:
|
||||||
- name: Warm Up Cache
|
|
||||||
- name: Lint & Build Dist
|
- name: Lint & Build Dist
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
- name: e2e Test
|
- name: e2e Test
|
||||||
- name: Deploy PR
|
- name: Deploy PR
|
||||||
|
- name: Release on npm
|
||||||
|
if: branch = development AND type = push
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
@@ -85,6 +86,12 @@ jobs:
|
|||||||
name: process Cloud
|
name: process Cloud
|
||||||
script:
|
script:
|
||||||
./scripts/travis/e2e/process-services-cloud-e2e.sh
|
./scripts/travis/e2e/process-services-cloud-e2e.sh
|
||||||
|
- stage: Release on npm
|
||||||
|
script:
|
||||||
|
- npm install @alfresco/adf-cli@alpha
|
||||||
|
- ./scripts/update-version.sh -nextalpha -gnu -minor -components
|
||||||
|
- ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
|
||||||
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Set up git user name and tag this commit
|
# Set up git user name and tag this commit
|
||||||
|
|||||||
Reference in New Issue
Block a user