mirror of
https://github.com/RPG-Research/bcirpg.git
synced 2024-04-16 14:23:01 +00:00
16 lines
451 B
YAML
16 lines
451 B
YAML
image: node:6.10.0
|
|
|
|
stages:
|
|
- push_to_packman_staging
|
|
|
|
push_to_packman_staging:
|
|
stage: push_to_packman_staging
|
|
only:
|
|
- tags
|
|
script:
|
|
- sed -i "s/0.0.1-PLACEHOLDERVERSION/$CI_COMMIT_TAG/g" package.json
|
|
- sed -i "s/PLACEHOLDERSHA/$CI_COMMIT_SHA/g" package.json
|
|
- sed -i "s/0.0.1-PLACEHOLDERVERSION/$CI_COMMIT_TAG/g" CHANGELOG.md
|
|
- curl -u $USER_NAME:$API_KEY https://staging-packages.unity.com/auth > .npmrc
|
|
- npm publish
|