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

fix: wip new pipeline

parent 5f2e550a
No related branches found
No related tags found
No related merge requests found
......@@ -20,40 +20,40 @@ before_script:
after_script:
- nix develop .#gitlab --command clean-up
tests:
stage: test
tags:
- nixos-gen3
script:
- nix develop .#gitlab --command run-ci-tests
cache:
untracked: true
key:
files:
- pnpm-lock.yaml
paths:
- node_modules/
rules:
- if: $DEPLOY_VERSION == null
web-tests:
stage: test
tags:
- nixos-gen3
script:
- nix develop .#gitlab --command run-ci-web-tests
cache:
untracked: true
key:
files:
- pnpm-lock.yaml
paths:
- node_modules/
artifacts:
paths:
- screenshot.png
rules:
- if: $DEPLOY_VERSION == null
#tests:
# stage: test
# tags:
# - nixos-gen3
# script:
# - nix develop .#gitlab --command run-ci-tests
# cache:
# untracked: true
# key:
# files:
# - pnpm-lock.yaml
# paths:
# - node_modules/
# rules:
# - if: $DEPLOY_VERSION == null
#
#web-tests:
# stage: test
# tags:
# - nixos-gen3
# script:
# - nix develop .#gitlab --command run-ci-web-tests
# cache:
# untracked: true
# key:
# files:
# - pnpm-lock.yaml
# paths:
# - node_modules/
# artifacts:
# paths:
# - screenshot.png
# rules:
# - if: $DEPLOY_VERSION == null
release:
stage: release
......
......@@ -13,12 +13,13 @@ in
echo_section "build and publish"
archive=$(ls ${monster} | grep tgz)
printenv
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
cat .npmrc
ls -lah "${monster}/$archive"
## 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" --no-git-checks --access public)
then
if [ -f .npmrc ] ; then rm .npmrc ; fi
echo_fail "Failed to publish the project."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment