@modea/modea-increment-version
Version:
Increments version and build numbers in specified files
45 lines (43 loc) • 1.41 kB
YAML
image: 'node:16'
pipelines:
custom:
publish-patch-version:
- step:
services:
- docker
size: 2x # Double resources available for this step to avoid out of memory error
script:
- npm ci
- npm version patch -m "upgrade to %s [skip ci]" -n
- git push && git push --tags
- pipe: atlassian/npm-publish:0.3.0
variables:
NPM_TOKEN: $NPM_TOKEN_PUBLISH
publish-minor-version:
- step:
services:
- docker
size: 2x # Double resources available for this step to avoid out of memory error
script:
- npm ci
- npm version minor -m "upgrade to %s [skip ci]" -n
- git push && git push --tags
- pipe: atlassian/npm-publish:0.3.0
variables:
NPM_TOKEN: $NPM_TOKEN_PUBLISH
publish-major-version:
- step:
services:
- docker
size: 2x # Double resources available for this step to avoid out of memory error
script:
- npm ci
- npm version major -m "upgrade to %s [skip ci]" -n
- git push && git push --tags
- pipe: atlassian/npm-publish:0.3.0
variables:
NPM_TOKEN: $NPM_TOKEN_PUBLISH
definitions:
services:
docker:
memory: 3096