cenk1cenk2/pipe-semantic-release

By cenk1cenk2

Updated about 1 month ago

semantic-release embedded inside a container for CI jobs.

Image

5.8K

pipe-semantic-release

Releases applications through the semantic-release library.

pipe-semantic-release [FLAGS]

Flags

CLI

Flag / EnvironmentDescriptionTypeRequiredDefault
$LOG_LEVELDefine the log level for the application.String
enum("panic", "fatal", "warn", "info", "debug", "trace")
falseinfo
$ENV_FILEEnvironment files to inject.StringSlicefalse

Environment

Flag / EnvironmentDescriptionTypeRequiredDefault
$ENVIRONMENT_ENABLEEnable environment injection.Boolfalsefalse
$ENVIRONMENT_CONDITIONSRegex pattern to select an environment.
Use either "heads/" for narrowing the search to branches or "tags/" for narrowing the search to tags.
String
json([]struct{ match: RegExp, environment: string })
false[
{ "match": "^tags/v?\d+.\d+.\d+$", "environment": "production" },
{ "match": "^tags/v?\d+.\d+.\d+-.*\.\d+$", "environment": "stage" },
{ "match" :"^heads/main$", "environment": "develop" },
{ "match": "^heads/master$", "environment": "develop" }
]
$ENVIRONMENT_FAIL_ON_NO_REFERENCEFail on missing environment references.Boolfalsetrue
$ENVIRONMENT_STRICTFail on no environment selected.Boolfalsetrue

GIT

Flag / EnvironmentDescriptionTypeRequiredDefault
$CI_COMMIT_REF_NAME
$BITBUCKET_BRANCH
Source control branch.Stringfalse
$CI_COMMIT_TAG
$BITBUCKET_TAG
Source control tag.Stringfalse

Login

Flag / EnvironmentDescriptionTypeRequiredDefault
$NPM_LOGINNPM registries to login.String
json([]struct { username: string, password: string, registry?: string, useHttps?: bool })
false
$NPM_NPMRC_FILE.npmrc file to use.StringSlicefalse".npmrc"
$NPM_NPMRCDirect contents of .npmrc file.Stringfalse

Package Manager

Flag / EnvironmentDescriptionTypeRequiredDefault
$NODE_PACKAGE_MANAGERPreferred Package manager for nodejs.String
enum("npm", "yarn", "pnpm")
falsepnpm

Semantic Release

Flag / EnvironmentDescriptionTypeRequiredDefault
$SEMANTIC_RELEASE_DRY_RUNRun semantic-release in dry mode without making changes.Boolfalsefalse
$SEMANTIC_RELEASE_WORKSPACEUse @qiwi/multi-semantic-release package to do a workspace release.Boolfalsefalse

Docker Pull Command

docker pull cenk1cenk2/pipe-semantic-release