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
You need to sign in or sign up before continuing.
Verified
Commit
57a4eaaf
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
35729d6d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide 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:
tags
:
-
nixos-gen3
script
:
-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
-
nix develop .#gitlab --command deploy
-
rm .npmrc
when
:
on_success
rules
:
-
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
echo_section "build and publish"
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
if ! publishingResult=$(
${
pkgs
'
.
nodejs_20
}
/bin/npm publish "
${
monster
}
/$archive" --json --no-git-checks --access public)
then
if [ -f .npmrc ] ; then rm .npmrc ; fi
echo_fail "Failed to publish the project."
exit 1
fi
if [ -f .npmrc ] ; then rm .npmrc ; fi
echo_hint "ID: $(echo $publishingResult | jq .id)"
echo_hint "Name: $(echo $publishingResult | jq .name)"
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