@oliasoft-open-source/react-ui-library 2.3.1 → 2.3.3
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
|
@@ -44,6 +44,7 @@ publish:
|
|
|
44
44
|
- VERSION=$(node -p "require('./package.json').version")
|
|
45
45
|
# Prepare MatterMost message
|
|
46
46
|
- MESSAGE="🤖 React UI Library version $VERSION released"
|
|
47
|
+
- chmod +x ./scripts/send-mattermost-message.sh
|
|
47
48
|
# Prepare .npmrc
|
|
48
49
|
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
49
50
|
# Configure git
|
|
@@ -64,13 +65,12 @@ publish:
|
|
|
64
65
|
echo "Version $VERSION already exists"
|
|
65
66
|
exit 1
|
|
66
67
|
else
|
|
67
|
-
# Tag a release in gitlab
|
|
68
68
|
echo "Tagging release in git"
|
|
69
69
|
git tag $VERSION -m "🤖 Tagged by Gitlab CI/CD Pipeline" -m "For further reference see $CI_PIPELINE_URL" -m "[skip ci]"
|
|
70
70
|
echo "Pushing tag to remote repository"
|
|
71
71
|
git push origin $VERSION --no-verify
|
|
72
|
-
# Publish the NPM package to the public NPM registry
|
|
73
72
|
echo "Publishing package to NPM registry"
|
|
74
73
|
npm publish
|
|
74
|
+
echo "Notifying MatterMost"
|
|
75
75
|
./scripts/send-mattermost-message.sh "$MATTERMOST_BOT_KEY" "$MESSAGE"
|
|
76
76
|
fi
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ MSG=$2
|
|
|
12
12
|
# Optional inputs:
|
|
13
13
|
CHANNEL=${3:-'#releases'}
|
|
14
14
|
USERNAME=${4:-'Gitlab CI/CD'}
|
|
15
|
-
ICON_URL=${5:-'https://
|
|
15
|
+
ICON_URL=${5:-'https://oliasoftstaticwebsite.blob.core.windows.net/helpguideimages/robot-icon.png'}
|
|
16
16
|
MATTERMOST_URL=${6:-'https://mm.oliasoft.com/hooks/'}
|
|
17
17
|
|
|
18
18
|
curl -X POST \
|