Skip to content

Instantly share code, notes, and snippets.

@xotahal
Created March 24, 2019 23:38
Show Gist options
  • Save xotahal/1038ab54c41c4e08da72d669956b2337 to your computer and use it in GitHub Desktop.
Save xotahal/1038ab54c41c4e08da72d669956b2337 to your computer and use it in GitHub Desktop.
lane :publish do |options|
# Test if environment is set up correctly
# (node installed, token for publishing, etc.)
verify
# Go through the GIT history and finds out what is the next version
# If there is nothing to release it won't publish anything
next unless analyze_commits
# Building
build_npm
# publish
publish_npm
# Release notes
notes = conventional_changelog
# Tag
push_git_tag
# Create a new github release for the tag
set_github_release(notes)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment