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
809962e3
Verified
Commit
809962e3
authored
10 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
5f2e550a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+34
-34
34 additions, 34 deletions
.gitlab-ci.yml
nix/scripts/deploy.nix
+4
-3
4 additions, 3 deletions
nix/scripts/deploy.nix
with
38 additions
and
37 deletions
.gitlab-ci.yml
+
34
−
34
View file @
809962e3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
nix/scripts/deploy.nix
+
4
−
3
View file @
809962e3
...
...
@@ -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."
...
...
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