Created
January 25, 2021 11:25
-
-
Save flo-sch/2dc74e22998463b65f69c8a0960daa2b to your computer and use it in GitHub Desktop.
semantic release step on bitbucket pipelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stable as of today | |
image: node:fermium | |
definitions: | |
steps: | |
- step: &release | |
name: Release a new version | |
script: | |
# Worth reading: https://confluence.atlassian.com/bitbucket/push-back-to-your-repository-962352710.html | |
# NPM publication key | |
- npm config set //registry.npmjs.org/:_authToken ${PUBLICATION_KEY} | |
# If you release @scoped packages to a private registry, this can be done with: | |
# - npm config set @my-scope:registry https://${REGISTRY_URL} | |
# - npm config set //${REGISTRY_URL}:_authToken ${PUBLICATION_KEY} | |
# Install dependencies | |
- yarn install --frozen-lockfile | |
# Trigger the release | |
- yarn semantic-release | |
branches: | |
master: | |
- step: *release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment