File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ AWS_ACCESS_KEY_ID=xxx \
9797AWS_SECRET_ACCESS_KEY=xxx \ 
9898RELEASE_BRANCH=master \ 
9999VERSION=patch \ 
100+ DIST_TAG=latest \ 
100101  docker-compose run release 
101102``` 
102103
@@ -142,6 +143,7 @@ AWS_ACCESS_KEY_ID=xxx \
142143AWS_SECRET_ACCESS_KEY=xxx \ 
143144RELEASE_BRANCH=master \ 
144145VERSION=preminor \ 
146+ DIST_TAG=next \ 
145147  docker-compose run release
146148``` 
147149
@@ -165,6 +167,8 @@ GITHUB_ACCESS_TOKEN=<generate a personal access token> \
165167AWS_ACCESS_KEY_ID=xxx \ 
166168AWS_SECRET_ACCESS_KEY=xxx \ 
167169RELEASE_BRANCH=master \ 
170+ VERSION=patch \ 
171+ DIST_TAG=latest \ 
168172RETRY_PUBLISH=1 \ 
169173FORCE_CDN_UPLOAD=1 \ 
170174  docker-compose run release
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ if [[ -z ${GITHUB_USER:-} ]]; then error_missing_field "GITHUB_USER"; fi
1212if  [[ -z  ${GITHUB_ACCESS_TOKEN:- }  ]];  then  error_missing_field " GITHUB_ACCESS_TOKEN" ;  fi 
1313if  [[ -z  ${RELEASE_BRANCH:- }  ]];  then  error_missing_field " RELEASE_BRANCH" ;  fi 
1414if  [[ -z  ${VERSION:- }  ]];  then  error_missing_field " VERSION" ;  fi 
15+ if  [[ -z  ${DIST_TAG:- }  ]];  then  error_missing_field " DIST_TAG" ;  fi 
1516if  [[ -z  ${AWS_ACCESS_KEY_ID:- }  ]];  then  error_missing_field " AWS_ACCESS_KEY_ID" ;  fi 
1617if  [[ -z  ${AWS_SECRET_ACCESS_KEY:- }  ]];  then  error_missing_field " AWS_SECRET_ACCESS_KEY" ;  fi 
1718if  [[ -z  ${AWS_SESSION_TOKEN:- }  ]];  then  error_missing_field " AWS_SESSION_TOKEN" ;  fi 
@@ -51,17 +52,9 @@ git push origin --follow-tags
5152
5253#  publish
5354if  [ -v RETRY_PUBLISH ];  then 
54-   npx lerna publish from-package
55+   npx lerna publish from-package --dist-tag  " $DIST_TAG " 
5556else 
56-   case  $VERSION  in 
57-     " prerelease" " prepatch" " preminor" " premajor" 
58-       npx lerna publish from-git --dist-tag next
59-       ;;
60- 
61-     * )
62-       npx lerna publish from-git
63-       ;;
64-   esac 
57+   npx lerna publish from-git --dist-tag " $DIST_TAG " 
6558fi 
6659
6760if  [ " $BROWSER_PACKAGE_CHANGED " -eq  1 ] ||  [  -v FORCE_CDN_UPLOAD ];  then 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments