Skip to content

Instantly share code, notes, and snippets.

@toygame
Created April 19, 2021 02:07
Show Gist options
  • Save toygame/8d8624a1ed5f7e79b959e8ca45375c37 to your computer and use it in GitHub Desktop.
Save toygame/8d8624a1ed5f7e79b959e8ca45375c37 to your computer and use it in GitHub Desktop.
Gitlab-ci and Semantic-release
image: node:latest
stages:
- release
deploy_production:
stage: release
only:
refs:
- master
except:
refs:
- tags
variables:
- $CI_COMMIT_TITLE =~ /^RELEASE:.+$/
before_script:
- npm install
script:
- npx semantic-release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment