Skip to content
Snippets Groups Projects
Verified Commit 8495a6d5 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip pipeline

parent 9860b16d
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,7 @@ release: ...@@ -63,8 +63,7 @@ release:
- nix develop .#gitlab --command release - nix develop .#gitlab --command release
when: on_success when: on_success
rules: rules:
- if: $DEPLOY_VERSION == null - if: $DEPLOY_VERSION == null && $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH == "master"
deploy: deploy:
stage: deploy stage: deploy
......
# Changelog # Changelog
## [3.68.0] - 2024-06-23 ## [3.68.0] - 2024-06-23
### Add Features ### Add Features
- add on/off action to toggle switch [#207](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/207) - add on/off action to toggle switch [#207](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/207)
### Bug Fixes
- gitlab pipeline
### Changes ### Changes
- repair toggle test - repair toggle test
......
...@@ -17,7 +17,7 @@ in ...@@ -17,7 +17,7 @@ in
archive=$(ls ${monster} | grep tgz) archive=$(ls ${monster} | grep tgz)
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
if ! publishingResult=$(${pkgs'.nodejs_20}/bin/npm publish "${monster}/$archive" --no-git-checks --access public) if ! publishingResult=$(${pkgs'.nodejs_20}/bin/npm publish "${monster}/$archive" --json --no-git-checks --access public)
then then
if [ -f .npmrc ] ; then rm .npmrc ; fi if [ -f .npmrc ] ; then rm .npmrc ; fi
echo_fail "Failed to publish the project." echo_fail "Failed to publish the project."
...@@ -33,6 +33,13 @@ in ...@@ -33,6 +33,13 @@ in
echo_hint "Version $(echo $publishingResult | jq .version)" echo_hint "Version $(echo $publishingResult | jq .version)"
echo_hint "SHA Sum: $(echo $publishingResult | jq .shasum)" echo_hint "SHA Sum: $(echo $publishingResult | jq .shasum)"
echo_hint "Files: $(echo $publishingResult | jq .entryCount)" echo_hint "Files: $(echo $publishingResult | jq .entryCount)"
set -x
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
echo_fail "Failed to publish the project."
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data '{"text":"Failed to publish: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK
exit 1
fi
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \ ${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data '{"text":"Deployed: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK --data '{"text":"Deployed: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment