Skip to content

Instantly share code, notes, and snippets.

@paulomcnally
Created November 19, 2018 19:48
Show Gist options
  • Select an option

  • Save paulomcnally/9c854308d9584be9fe31fb916f0f0d57 to your computer and use it in GitHub Desktop.

Select an option

Save paulomcnally/9c854308d9584be9fe31fb916f0f0d57 to your computer and use it in GitHub Desktop.
Deploy package to npm based https://github.com/control-fitness/generator-cf-react using GitLab CI
image: ruby:2.2
before_script:
- apt-get install -y curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get install -y nodejs
- node -v
- ruby -v
- npm -v
cache:
paths:
- node_modules/
test:
stage: test
script:
- npm install
- npm run test
production:
stage: deploy
script:
- npm run dist
- gem install dpl
- dpl --provider=npm --email=$NPM_EMAIL --api-key=$NPM_API_KEY
only:
- tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment