.gitlab-ci.yml 451 B

123456789101112131415
  1. image: node:6.10.0
  2. stages:
  3. - push_to_packman_staging
  4. push_to_packman_staging:
  5. stage: push_to_packman_staging
  6. only:
  7. - tags
  8. script:
  9. - sed -i "s/0.0.1-PLACEHOLDERVERSION/$CI_COMMIT_TAG/g" package.json
  10. - sed -i "s/PLACEHOLDERSHA/$CI_COMMIT_SHA/g" package.json
  11. - sed -i "s/0.0.1-PLACEHOLDERVERSION/$CI_COMMIT_TAG/g" CHANGELOG.md
  12. - curl -u $USER_NAME:$API_KEY https://staging-packages.unity.com/auth > .npmrc
  13. - npm publish