@oliasoft-open-source/react-ui-library 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml
CHANGED
|
@@ -18,7 +18,7 @@ cache:
|
|
|
18
18
|
- node_modules/
|
|
19
19
|
- public/
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# Publish the static docs site (including Storybook) to Gitlab pages upon merge to master
|
|
22
22
|
pages:
|
|
23
23
|
stage: release
|
|
24
24
|
only:
|
|
@@ -31,7 +31,10 @@ pages:
|
|
|
31
31
|
paths:
|
|
32
32
|
- public
|
|
33
33
|
|
|
34
|
-
# Push a tag and publish to the public NPM registry upon merge to master
|
|
34
|
+
# Push a tag and publish the release to the public NPM registry upon merge to master
|
|
35
|
+
# Loosely inspired by:
|
|
36
|
+
# - https://markswanderingthoughts.nl/tagging-in-gitlab-ci-pipeline-using-deploy-keys/
|
|
37
|
+
# - https://www.garybell.co.uk/creating-a-release-with-gitlab-ci-and-composer/
|
|
35
38
|
publish:
|
|
36
39
|
stage: release
|
|
37
40
|
only:
|
|
@@ -49,14 +52,10 @@ publish:
|
|
|
49
52
|
- git config --global user.email "$GITLAB_USER_EMAIL"
|
|
50
53
|
- git config --global user.name "🤖 GitLab CI/CD"
|
|
51
54
|
- echo "setting origin remote to 'git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git'"
|
|
52
|
-
- git remote -v
|
|
53
55
|
- git remote rm origin
|
|
54
56
|
- git remote add origin git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git
|
|
55
|
-
- git remote -v
|
|
56
|
-
- git branch
|
|
57
57
|
- git fetch --quiet
|
|
58
58
|
- git checkout "$CI_BUILD_REF_NAME"
|
|
59
|
-
- git fetch --tags --quiet
|
|
60
59
|
# Only complete pipeline if version does not already exist
|
|
61
60
|
- >
|
|
62
61
|
if [ $(git tag -l "$VERSION") ]; then
|
package/package.json
CHANGED