Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: circleci and semantic-release #6

Merged
merged 8 commits into from
Nov 15, 2019
Merged

feat: circleci and semantic-release #6

merged 8 commits into from
Nov 15, 2019

Conversation

devfreddy
Copy link
Contributor

@devfreddy devfreddy commented Nov 12, 2019

Prerequisites:

brew install gnu-sed (for search and replace)
brew install bash (for associative arrays on mac)
npm install -g json (to modify with package.json)

  • Github Personal Access token with "public_repo" scope
  • Snyk API Token
  • CircleCI Personal API Token
  • Demotron (or other account) API Key

Required setup items:

  • Add project to CircleCI

  • Configure advanced CircleCI settings - https://circleci.com/gh/newrelic/nr1-customer-journey/edit#advanced-settings

    • Only build pull requests
    • Build forked pull requests
  • Add branch protection for the master branch (even from administrators)

  • Turn off "Branch or Tag Creation" webhook event under the configured CircleCI webhook endpoint

  • Add a Deploy Key (w/write access) to github repo (public key) & CircleCI (private key)

  • Add Github Personal access token as GITHUB_TOKEN ENV variable. Required by: Semantic-Release Github Plugin

  • Add Snyk token as SNYK_TOKEN ENV variable in CircleCI

  • Add an appropriate NR api key for use in deployment with the nr1 cli as NR1CLI_PROFILE_DEMOTRONV2 ENV variable in CircleCI

  • Copy .circleci directory. Note - there are some scripts used to copy this from open-source-tools/nerdpacks/oss-template, then search/replace the following strings:

    • NERDPACK_UUID
    • NERDPACK_SLUG
    • REPO_DEPLOY_KEY_FINGERPRINT
  • Import bot user's into CLA assistant

  • npm i -D @semantic-release/changelog @semantic-release/git

@CLAassistant
Copy link

CLAassistant commented Nov 12, 2019

CLA assistant check
All committers have signed the CLA.

@devfreddy
Copy link
Contributor Author

Ignoring job-lint failure until we do a second pass on repos with our @newrelic/eslint-plugin-newrelic

@devfreddy devfreddy changed the title Feat/circle ci semantic release feat: circleci and semantic-release Nov 15, 2019
@devfreddy devfreddy merged commit f4de0da into newrelic:master Nov 15, 2019
devfreddy pushed a commit that referenced this pull request Nov 15, 2019
# [0.2.0](v0.1.1...v0.2.0) (2019-11-15)

### Features

* circleci and semantic-release ([#6](#6)) ([f4de0da](f4de0da))
@devfreddy
Copy link
Contributor Author

🎉 This PR is included in version 0.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants