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

fix: wip new pipeline

parent 82072c5b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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."
''
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment