mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Changed beta versioning procedure
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Each commit to `dev` branch will result in publishing a new version of library
 | 
					Each commit to `dev` branch will result in publishing a new version of library
 | 
				
			||||||
tagged `beta`. Versions names are based on commit SHA, e.g. 
 | 
					tagged `beta`. Versions names are based on commit SHA, e.g. 
 | 
				
			||||||
`foris@0.1.0-d9073aa4.0`.
 | 
					`foris@0.1.0-beta.d9073aa4`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Preparing a release
 | 
					### Preparing a release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,8 @@ else
 | 
				
			|||||||
    echo "unsafe-perm = true" >> ~/.npmrc
 | 
					    echo "unsafe-perm = true" >> ~/.npmrc
 | 
				
			||||||
    if test "$1" = "beta"
 | 
					    if test "$1" = "beta"
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        npm version prerelease --preid=$CI_COMMIT_SHORT_SHA --git-tag-version false
 | 
					        BETA_VERSION=$(npx -c 'echo "$npm_package_version"')-beta.$CI_COMMIT_SHORT_SHA
 | 
				
			||||||
 | 
					        npm version $BETA_VERSION --git-tag-version false
 | 
				
			||||||
        npm publish --tag beta
 | 
					        npm publish --tag beta
 | 
				
			||||||
    elif test "$1" = "latest"
 | 
					    elif test "$1" = "latest"
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user