Skip to content

Instantly share code, notes, and snippets.

@flo-sch
Created January 25, 2021 11:25
Show Gist options
  • Save flo-sch/2dc74e22998463b65f69c8a0960daa2b to your computer and use it in GitHub Desktop.
Save flo-sch/2dc74e22998463b65f69c8a0960daa2b to your computer and use it in GitHub Desktop.
semantic release step on bitbucket pipelines
# 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