Created
November 19, 2018 19:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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