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