Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
8495a6d5
Verified
Commit
8495a6d5
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip pipeline
parent
9860b16d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
CHANGELOG.md
+0
-4
0 additions, 4 deletions
CHANGELOG.md
nix/scripts/deploy.nix
+8
-1
8 additions, 1 deletion
nix/scripts/deploy.nix
with
9 additions
and
7 deletions
.gitlab-ci.yml
+
1
−
2
View file @
8495a6d5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
0
−
4
View file @
8495a6d5
# 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
...
...
This diff is collapsed.
Click to expand it.
nix/scripts/deploy.nix
+
8
−
1
View file @
8495a6d5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment