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

fix: wip new pipeline

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