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
57a4eaaf
Verified
Commit
57a4eaaf
authored
11 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
35729d6d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-2
0 additions, 2 deletions
.gitlab-ci.yml
nix/scripts/deploy.nix
+6
-0
6 additions, 0 deletions
nix/scripts/deploy.nix
with
6 additions
and
2 deletions
.gitlab-ci.yml
+
0
−
2
View file @
57a4eaaf
...
@@ -70,9 +70,7 @@ deploy:
...
@@ -70,9 +70,7 @@ deploy:
tags
:
tags
:
-
nixos-gen3
-
nixos-gen3
script
:
script
:
-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
-
nix develop .#gitlab --command deploy
-
nix develop .#gitlab --command deploy
-
rm .npmrc
when
:
on_success
when
:
on_success
rules
:
rules
:
-
if
:
$DEPLOY_VERSION && $CI_COMMIT_TAG
-
if
:
$DEPLOY_VERSION && $CI_COMMIT_TAG
...
...
This diff is collapsed.
Click to expand it.
nix/scripts/deploy.nix
+
6
−
0
View file @
57a4eaaf
...
@@ -15,13 +15,19 @@ in
...
@@ -15,13 +15,19 @@ in
echo_section "build and publish"
echo_section "build and publish"
archive=$(ls
${
monster
}
| grep tgz)
archive=$(ls
${
monster
}
| grep tgz)
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
cat .npmrc
## npm instead of pnpm because of https://github.com/pnpm/pnpm/issues/7950
## npm instead of pnpm because of https://github.com/pnpm/pnpm/issues/7950
if ! publishingResult=$(
${
pkgs
'
.
nodejs_20
}
/bin/npm publish "
${
monster
}
/$archive" --json --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
echo_fail "Failed to publish the project."
echo_fail "Failed to publish the project."
exit 1
exit 1
fi
fi
if [ -f .npmrc ] ; then rm .npmrc ; fi
echo_hint "ID: $(echo $publishingResult | jq .id)"
echo_hint "ID: $(echo $publishingResult | jq .id)"
echo_hint "Name: $(echo $publishingResult | jq .name)"
echo_hint "Name: $(echo $publishingResult | jq .name)"
echo_hint "Version $(echo $publishingResult | jq .version)"
echo_hint "Version $(echo $publishingResult | jq .version)"
...
...
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