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
b1875724
Verified
Commit
b1875724
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
82072c5b
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
.npmignore
+6
-1
6 additions, 1 deletion
.npmignore
nix/scripts/build.nix
+15
-6
15 additions, 6 deletions
nix/scripts/build.nix
nix/scripts/deploy.nix
+0
-5
0 additions, 5 deletions
nix/scripts/deploy.nix
with
21 additions
and
12 deletions
.npmignore
+
6
−
1
View file @
b1875724
...
...
@@ -4,4 +4,9 @@ temp
coverage
.c8rc.json
package-lock.json
pnpm-lock.yaml
\ No newline at end of file
pnpm-lock.yaml
npm-debug.log
.npmrc
.npm
.credential
.credentials
\ No newline at end of file
This diff is collapsed.
Click to expand it.
nix/scripts/build.nix
+
15
−
6
View file @
b1875724
...
...
@@ -27,9 +27,12 @@
};
in
pkgs
'
.
writeShellScriptBin
"build"
''
set -e
source
${
pkgs
'
.
common
}
/bin/common
${
bashFktScript
}
set -x
export PATH=
${
lib
.
makeBinPath
[
pkgs
'
.
gzip
pkgs
'
.
gnutar
]
}
export HOME=$NIX_BUILD_TOP # Some packages need a writable HOME
...
...
@@ -63,19 +66,25 @@ set -x
echo_fail "Failed to copy CHANGELOG.md. Exiting."
exit 1
fi
if !
${
pkgs
'
.
coreutils
}
/bin/cp
${
root
}
/.npmignore "./"
then
echo_fail "Failed to copy .gitignore Exiting."
exit 1
fi
if ! echo '
${
builtins
.
toJSON
releasedPackageJson
}
' > package.json
then
echo_fail "Failed to write package.json. Exiting."
exit 1
fi
${
pkgs
'
.
coreutils
}
/bin/mkdir -p $out
if !
${
pkgs
'
.
gnutar
}
/bin/tar -czvf $out/monster-
${
version
}
.tgz *
then
if !
${
pkgs
'
.
nodejs_20
}
/bin/npm pack --pack-destination $out/ ;
then
echo_fail "Failed to create tarball. Exiting."
exit 1
fi
fi
echo_ok "Tarball created successfully."
''
This diff is collapsed.
Click to expand it.
nix/scripts/deploy.nix
+
0
−
5
View file @
b1875724
...
...
@@ -15,13 +15,8 @@ in
archive=$(ls
${
monster
}
| grep tgz)
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
set -x
${
pkgs
'
.
nodejs_20
}
/bin/npm publish "
${
monster
}
/$archive"
cat /root/.npm/_logs/*
${
pkgs
'
.
eza
}
/bin/eza -T /root/.npm/_cacache/
if ! publishingResult=$(
${
pkgs
'
.
nodejs_20
}
/bin/npm publish "
${
monster
}
/$archive" --no-git-checks --access public)
then
if [ -f .npmrc ] ; then rm .npmrc ; fi
...
...
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