Skip to content

Instantly share code, notes, and snippets.

@gunar
Created August 17, 2017 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunar/3ebd04a16ba1297e0742702480945640 to your computer and use it in GitHub Desktop.
Save gunar/3ebd04a16ba1297e0742702480945640 to your computer and use it in GitHub Desktop.
CircleCI Publish to npm
dependencies:
pre:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
override:
- yarn
machine:
environment:
# For yarn
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: "8.1.4"
timezone: America/Los_Angeles
test:
override:
- yarn test
deployment:
release:
branch: master
commands:
- npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment